新安装的ubuntu18.04系统无法用xshell远程连接问题

Posted New_Journey

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了新安装的ubuntu18.04系统无法用xshell远程连接问题相关的知识,希望对你有一定的参考价值。

1.ubuntu 18.04系统默认是普通用户登录,首先设置root密码

sudo passwd

2.安装openssh-server

apt install openssh-server -y

如果出现报错,请参考下图解决即可

 

 3.修改配置文件/etc/ssh/sshd_config

插入一行配置:

  PermitRootLogin yes

4.重启sshd

systemctl restart sshd

以上是关于新安装的ubuntu18.04系统无法用xshell远程连接问题的主要内容,如果未能解决你的问题,请参考以下文章