/usr/bin/ssh-copy-id: ERROR: No identities found

/usr/bin/ssh-copy-id: ERROR: No identities found

1 문제상황[ | ]

Console
Copy
[testuser@zetawiki1 ~]$ ssh-copy-id testuser@zetawiki2
/usr/bin/ssh-copy-id: ERROR: No identities found

2 확인[ | ]

Console
Copy
[testuser@zetawiki01 ~]$ ll ~/.ssh/id*
-rw------- 1 testuser testuser 1675 Dec  2 15:46 /home/testuser/.ssh/id_rsa
-rw-r--r-- 1 testuser testuser  404 Dec  2 15:46 /home/testuser/.ssh/id_rsa.pub
Console
Copy
[testuser@zetawiki01 ~]$ sshpass -pP@ssw0rd ssh testuser@zetawiki02
Last login: Wed Dec  2 15:40:23 2015 from zetawiki01
Console
Copy
[testuser@zetawiki02 ~]$ exit
logout
Connection to zetawiki02 closed.
[testuser@zetawiki01 ~]$
Console
Copy
[testuser@zetawiki01 ~]$ sshpass -pP@ssw0rd ssh-copy-id testuser@zetawiki02
/usr/bin/ssh-copy-id: ERROR: No identities found

3 해결방법[ | ]

  • -i 옵션 추가
Console
Copy
[testuser@zetawiki01 ~]$ sshpass -pP@ssw0rd ssh-copy-id -i ~/.ssh/id_rsa.pub testuser@zetawiki02
31
Now try logging into the machine, with "ssh 'testuser@zetawiki02'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.
Console
Copy
[testuser@zetawiki01 ~]$ ssh zetawiki02
Last login: Wed Dec  2 15:55:50 2015 from zetawiki01
[testuser@zetawiki02 ~]$

4 같이 보기[ | ]

5 참고[ | ]