无法复制RSA密钥
问题描述:
当我尝试运行ssh-copy-id
然后我收到以下错误:无法复制RSA密钥
[email protected]:~/.ssh$ ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/abcd/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: ERROR: ssh: connect to host targetHostIP port 22: Connection timed out
我试图ssh-copy-id -i <path_of_id_rsa.pub> [email protected]
也不过同样的错误。
答
您可以手动复制它。在~/.ssh/authorized_keys
欢迎
ssh
到targetHostIP
贴在年底的StackOverflow!本网站旨在作为编程问答。对于这样的关于服务器配置的问题,您可能想要前往http://SuperUser.com。 – ghoti