12345678 [oldgirl@c6 ~]$ scp .ssh/authorized_keys test@10.0.0.182:/home/test/
The authenticity of host '10.0.0.182 (10.0.0.182)' can't be established.
RSA key fingerprint is 11:fa:8b:27:68:89:5c:83:b0:16:ea:4b:8b:41:4b:00.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.0.0.182' (RSA) to the list of known hosts.
Permission denied (publickey).
lost connection
[oldgirl@c6 ~]
scp遠程拷貝檔案時提示錯誤:
Warning: Permanently added '10.0.0.182' (RSA) to the list of known hosts.
Permission denied (publickey).
解決:
登入10.0.0.182,將/etc/ssh/sshd_config檔案中的PasswordAuthentication no 改為PasswordAuthentication yes
重啟sshd服務:/etc/init.d/sshd restart
問題解決。
原因:scp是基於ssh的拷貝服務,ssh在沒有密鑰登入的情況下,禁用了密碼登入,故出現如上錯誤。
shell自動化配置Hadoop設定檔樣本
通過配置SSH深刻理解Puppet的文法及工作機制
Ubuntu下SSH安裝或設定
SUSE啟用SSH和FTP
使用SSH用戶端登陸Linux之後出現亂碼的解決方案
詳解Linux中SSH遠端存取控制