需求描述
提示:这里描述具体问题:
用sudo su在用ssh时发送验证出错。
例如:需要修改/etc/ssh/sshd_config中的#PermitRootLogin prohibit-password改为PermitRootLogin yes
然后需要重启ssh服务
sudo systemctl restart ssh
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
MaxSessions 100
在terminal中输入su出错。解决就是在terminal中输入sudo passwd su,增加新密码即可。