Solve the problem that the root user cannot log in when XShell is connected [Linux]

  1. Install SSH service
sudo apt install golang-golang-x-tools

sudo apt-get install sppenssh-server
  1. Start the SSH service
 sudo server sshd start
  1. Modify the configuration file

Enter: vim /etc/ssh/sshd_configand find: PermitRootLogin prohibit-passwordand modify it to: PermitRootLogin yes

  1. Restart the SSH service
sudo service sshd restart

Guess you like

Origin blog.csdn.net/qq_43073558/article/details/109611123