sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak && sudo sed -i '/^PermitRootLogin/ s/^/#/; /#PermitRootLogin/ s/^.*$/#PermitRootLogin yes/; $aPermitRootLogin yes' /etc/ssh/sshd_config && sudo systemctl restart sshd
友链自助提交插件-申请按钮示例
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak && sudo sed -i '/^PermitRootLogin/ s/^/#/; /#PermitRootLogin/ s/^.*$/#PermitRootLogin yes/; $aPermitRootLogin yes' /etc/ssh/sshd_config && sudo systemctl restart sshd
Ubuntu启用Root用户登录SSH
https://blog.likesrt.com//archives/c30566d8-b95c-422c-9552-d1a52a5246d6
参与讨论