Linux Linux开启ssh密码登陆,root用户远程登陆 开启ssh密码登陆 1 sudo sed -i 's/^#\?PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config 重启ssh 1 sudo systemctl restart sshd root用户远程登陆 找到 PermitRootLogin ,修改为 PermitRootLogin yes 1 sudo vim /etc/ssh/sshd_config 重启ssh 1 sudo systemctl restart sshd