winscp的root连接ubuntu“拒绝访问”的解决方法


问题如上所示。

解决:

1、修改ssh配置文件:vim etc/ssh/sshd_config

 

在#PermitRootLogin without-password  此行下新增一行:

PermitRootLogin yes

 

 

保存退出。

 

2、重启ssh

service ssh restart

 

 

3、重新用root账户登陆,输入密码,成功登陆。

 

 

 
---------------------
作者:santirenpc
来源:CSDN
原文:https://blog.csdn.net/santirenpc/article/details/83187396
版权声明:本文为博主原创文章,转载请附上博文链接!

posted @ 2018-12-10 19:46  weizhxa  阅读(5260)  评论(0编辑  收藏  举报