ubuntu 开放root 密码登录ssh
2019-06-28 本文已影响0人
蟠龙有悔
~$ sudo vim /etc/ssh/sshd_config
# PermitRootLogin prohibit-password
PermitRootLogin yes
# PasswordAuthentication no
PasswordAuthentication yes
PermitRootLogin prohibit-password
允许root登录,但是禁止root用密码登录
退出 重启 sshd
sudo service sshd restart
好了可以用 root/密码 登录 ssh 了