nano /etc/ssh/sshd_config
把文本中的
PermitRootLogin no
前的“#”去掉”no”改成“yes”
然而,debian9的配置文件中并没有这段代码!仔细查看后把
PermitRootLogin prohibit-password
改成
PermitRootLogin yes
并reboot后解决。
nano /etc/ssh/sshd_config
把文本中的
前的“#”去掉”no”改成“yes”
然而,debian9的配置文件中并没有这段代码!仔细查看后把
改成
PermitRootLogin yes
并reboot后解决。