Xshell连接Hyper-V Linux
作者:互联网
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了。
标签:Hyper,重启,PasswordAuthentication,PermitRootLogin,ssh,Linux,Xshell,yes 来源: https://www.cnblogs.com/sinicheveen/p/16502075.html