deepin v20系统不能xshell shh连接的解决,以及如何设置root账号的密码

 

 

vi /etc/ssh/sshd_config


# Authentication:

#LoginGraceTime 2m

#PermitRootLogin prohibit-password

#StrictModes yes

修改后

# Authentication:

LoginGraceTime 2m

PermitRootLogin yes

StrictModes yes

 

记得 # Authentication: 这一条信息不要修改

然后 wq 退出

 

修改成功以后,重启ssh服务:

service ssh restart

重启ssh服务之后就可以了。

 

 

安装deepinv20系统,上面这样做之后只能连接普通用户登录,普通用户执行命令太烦了每次su切换很烦的,你需要设置root账号密码 sudo passwd root,设置好密码,然后xshell就可以使用root登录了

posted @ 2021-12-23 18:12  北风之神0509  阅读(729)  评论(0编辑  收藏  举报