ubuntu virtual machine's ---- "two" Ubuntu the root account can not be used xshell remote connectivity solutions summary

Symptoms:

  • Use Xshell access ubuntu server, can not connect

    Symptom

  • xshell test non-root user, you can connect properly, but still can not access the root user

Solution:

  1. Modify the /etc/ssh/sshd_configfile to PermitRootLogin Prohibit-passwordadd #comment out

  2. New add:PermitRootLogin yes

  3. Restart the ssh service /etc/init.d/ssh restart

  4. Reuse root connection, ok!

Reprinted link: https://blog.csdn.net/qq_35445306/article/details/78771398

Reference Links: https://www.cnblogs.com/vitre/p/5227456.html

Guess you like

Origin www.cnblogs.com/fh-fendou/p/11121995.html