美文网首页
scp出现Permission denied (publicke

scp出现Permission denied (publicke

作者: matianhe | 来源:发表于2017-08-21 17:02 被阅读0次

原因:scp是基于ssh的拷贝服务,ssh在没有密钥登录的情况下,禁用了密码登录。想要解决只需要修改配置文件。

方法:

  1. 登录远程主机,将/etc/ssh/sshd_config文件中的PasswordAuthentication no 改为PasswordAuthentication yes

  2. 重启sshd服务:systemctl restart ssh.service

相关文章

网友评论

      本文标题:scp出现Permission denied (publicke

      本文链接:https://www.haomeiwen.com/subject/dichdxtx.html