Ubuntu administrator to modify the password and login in xshell

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

  

  

Guess you like

Origin www.cnblogs.com/q767498226/p/11353953.html