A. Ubuntu open port 22
sudo apt-get install openssh-server 下载ssh
systemctl ssh start to open
Two. Ubuntu root password initialization
sudo passwd root
Three. Ubuntu login root on xshell
vi / etc / ssh / sshd_config commented PermitRootLogin prohabit-password
Add PermitRootLogin yes
Restart /etc/init.d/ssh restart