Ubuntu服务器版开启root账户SSH登录
sudo passwd root
sudo passwd -u root
su - root
开启ssh登录
sudo nano /etc/ssh/sshd_config
将#PermitRootLogin prohibit-password 改成:PermitRootLogin yes
sudo systemctl restart ssh
重启ssh服务
sudo passwd root
sudo passwd -u root
su - root
开启ssh登录
sudo nano /etc/ssh/sshd_config
将#PermitRootLogin prohibit-password 改成:PermitRootLogin yes
sudo systemctl restart ssh
重启ssh服务
评论已关闭