scp报错Permission denied, please try again解决办法

tech2025-05-16  12

问题:两台服务器之间传数据报错? [root@iz2ze29pyd9gyx6n9mnb5kz ~]# scp 1.txt root@47.93.2.98:/mnt root@47.93.2.98’s password: Permission denied, please try again. 解决办法: 修改目标配置文件/etc/ssh/sshd_config

将PermitRootLogin no改为PermitRootLogin yes

重启sshd服务就可以了

最新回复(0)