Ubuntu 无法复制rsa密钥
当我尝试运行Ubuntu 无法复制rsa密钥,ubuntu,ssh,digital-ocean,Ubuntu,Ssh,Digital Ocean,当我尝试运行ssh copy id时,会出现以下错误: abcd@hostOnDigitalOcean:~/.ssh$ ssh-copy-id xyz@targetHostIP /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),
ssh copy id
时,会出现以下错误:
abcd@hostOnDigitalOcean:~/.ssh$ ssh-copy-id xyz@targetHostIP
/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复制id-Ixyz@targetHostIP
同样的错误。您可以手动复制它
cat ~/.ssh/id_rsa.pub
ssh
totargetHostIP
粘贴在
~/.ssh/authorized_keys
的末尾。您可以手动复制它
cat ~/.ssh/id_rsa.pub
ssh
totargetHostIP
粘贴在
~/.ssh/authorized_keys的末尾
欢迎使用StackOverflow!本网站旨在作为一个编程问答。对于类似于服务器配置的问题,您可能希望转到。欢迎来到StackOverflow!本网站旨在作为一个编程问答。对于像这样关于服务器配置的问题,您可能希望转到。