
동일한 호스트에 대해 서로 다른 사용자 이름과 ID 파일을 사용하여 여러 자격 증명을 구성하고 싶습니다. 현재 내가 이 작업을 수행하는 방법을 아는 유일한 방법은 해킹하는 것입니다.
Host myhost
User user1
HostName myhost
IdentityFile ~/.ssh/user1.pem
IdentitiesOnly yes
Host myhost-fake
User user2
HostName myhost
IdentityFile ~/.ssh/user2.pem
IdentitiesOnly yes
이렇게 하면 다음과 같은 작업을 수행할 수 있습니다.
ssh myhost
그리고:
ssh myhost-fake
이를 수행하는 더 좋은 방법이 있습니까?