// 开启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;
// 重启ssh服务
sudo service sshd restart
// 开启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;
// 重启ssh服务
sudo service sshd restart