xshell远程登录ubuntu设置流程

修改只读文件
sudo su

exit

Ubuntu需要启动SSH服务,如果没有安装需要安装openssh-server
sudo apt-get install openssh-server
/etc/init.d/ssh start(启动ssh)

修改 vim /etc/ssh/sshd_config
找到
# Authentication:
   LoginGraceTime 120
   PermitRootLogin without passwd
   StrictModes yes
改为
# Authentication:
   LoginGraceTime 120
   PermitRootLogin yes
   StrictModes yes
   重启虚拟机

猜你喜欢

转载自blog.csdn.net/cdlwhm1217096231/article/details/81139646