2016-12-14 120 views
1

當我嘗試運行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] 也不過同樣的錯誤。

+2

歡迎

cat ~/.ssh/id_rsa.pub 

sshtargetHostIP

貼在年底的StackOverflow!本網站旨在作爲編程問答。對於這樣的關於服務器配置的問題,您可能想要前往http://SuperUser.com。 – ghoti

回答

0

您可以手動複製它。在~/.ssh/authorized_keys