错误Permission denied (publickey)解决办法

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