ubuntu scp命令或者用root连接ssh提示:Permission denied, please try again.错误

1、su -            #!!!

2、vi /etc/ssh/sshd_config

3、PermitRootLogin yes    # 找到此字段,改为此行所示

4、/etc/init.d/ssh restart    # 重启ssh服务 

原文地址:https://www.cnblogs.com/weiyiming007/p/9493699.html