1、安装ssh
apt install openssh-server
2、修改ssh配置:vim /etc/ssh/sshd_config
- 把
#PermitRootLogin prohibit-password改为PermitRootLogin yes - 把
#PasswordAuthentication yes改为PasswordAuthentication yes
3、重启ssh服务
运行sudo service ssh start重启ssh服务,就能通过Xshell以root用户连接Ubuntu了。
原创文章,作者:bd101bd101,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/275906.html