首页 > 代码库 > ssh-copy-id:/usr/bin/ssh-copy-id: ERROR: No identities found

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

$ ssh-copy-id remote-machine

公钥,私钥已经生成,执行上述命令完毕出现如下错误:

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

g 之发现缺少公钥路径,通过 -i 加上即可:

$ ssh-copy-id -i ~/.ssh/id_dsa.pub user@remote_ip

不要轻易迷信任何书籍,实践出真知!

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