ssh錯誤: Permission denied (publickey).

來源:互聯網
上載者:User

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遠端存取控制

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.