红联Linux门户
Linux帮助

ssh远程登录服务器时提示'Permission denied (publickey)'的解决

发布时间:2015-11-12 15:27:07来源:linux网站作者:期待一片自己的蓝天

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在没有密钥登录的情况下,禁用了密码登录,故出现如上错误。


Linux下SSH远程连接服务慢解决方案:http://www.linuxdiyf.com/linux/12318.html

采用SSH远程执行命令:http://www.linuxdiyf.com/linux/6110.html

Ubuntu下SSH远程连接:http://www.linuxdiyf.com/linux/4436.html