Linux一步追加 /etc/ssh/sshd_config 中的PasswordAuthentication yes , PermitRootLogin yes , 允许ssh远程密码登录的脚本
一步追加 /etc/ssh/sshd_config 中的PasswordAuthentication yes , PermitRootLogin yes , 允许ssh远程密码登录
# 一步追加 `/etc/ssh/sshd_config` 中的`PasswordAuthentication yes` , `PermitRootLogin yes`
echo -e "\n# 允许普通用户用密码远程登录\nPasswordAuthentication yes\n# 允许root用密码远程登录\nPermitRootLogin yes" | sudo tee -a /etc/ssh/sshd_config ; sudo systemctl restart sshd