Ubuntu SSH root user cannot login

  1. Open /etc/ssh/sshd_config and check if PermitRootLogin is set to yes. If not, then set it to yes and restart ssh with sudo service ssh restart

原文地址:https://www.cnblogs.com/kfx2007/p/4157687.html