1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > scp命令出现Permission denied please try again(publickey password)提示的解决

scp命令出现Permission denied please try again(publickey password)提示的解决

时间:2024-03-30 21:53:58

相关推荐

scp命令出现Permission denied  please try again(publickey password)提示的解决

使用scp命令跨主机拷贝文件时出现Permission denied, please try again(publickey,password)错误,错误如下

root@hj-0219:~/.ssh# scp authorized_keys root@192.168.160.131:/home/root@192.168.160.131's password: Permission denied, please try again.root@192.168.160.131's password: Permission denied, please try again.root@192.168.160.131's password: Permission denied (publickey,password).lost connection

解决办法,修改/etc/ssh/sshd_config

# Authentication:LoginGraceTime 120PermitRootLogin yes #修改这一行为yesStrictModes yes

然后重启服务:

systemctl restart ssh.service

就可以复制了。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。