开机改密脚本

kuku 发布于 22 天前 4 次阅读


记录一下开机改密脚本

开机改密

#!/bin/bash
echo root:Vicer |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot
此作者没有提供个人介绍。
最后更新于 2025-09-23