sudo apt-get update
sudo apt-get upgrade
sudo -i
/etc/ssh/sshd_configvi /etc/ssh/sshd_config
修改PermitRootLogin和PasswordAuthentication为yes
- # Authentication:
- PermitRootLogin yes //默认为no,需要开启root用户访问改为yes
-
- # Change to no to disable tunnelled clear text passwords
- PasswordAuthentication yes //默认为no,改为yes开启密码登陆
passwd root
/etc/init.d/ssh restart
在xshell中,直接使用root账号密码登录