原因:scp是基于ssh的拷贝服务,ssh在没有密钥登录的情况下,禁用了密码登录。想要解决只需要修改配置文件。
方法:
-
登录远程主机,将
/etc/ssh/sshd_config文件中的PasswordAuthentication no改为PasswordAuthentication yes -
重启sshd服务:systemctl restart ssh.service
原因:scp是基于ssh的拷贝服务,ssh在没有密钥登录的情况下,禁用了密码登录。想要解决只需要修改配置文件。
登录远程主机,将/etc/ssh/sshd_config文件中的PasswordAuthentication no 改为PasswordAuthentication yes
重启sshd服务:systemctl restart ssh.service
本文标题:scp出现Permission denied (publicke
本文链接:https://www.haomeiwen.com/subject/dichdxtx.html
网友评论