miscellany

[ssh-copy-id] the agent has no identities

snskshn 2014. 10. 31. 23:20

ssh-copy-id 명령어를 통해 공개키를 대상 서버에 복사할 때, 대상 서버의 ~/.ssh/authorized_keys 파일에 아래와 같은 문구만 입력되는 경우가 있다.


the agent has no identities


이 때는 아래와 같이 ssh-copy-id 명령에 -i 옵션을 주면 해결이 된다고 한다.


ssh-copy-id -i id@server