Răsfoiți Sursa

Update gcp_root_ssh.sh

蘭雅sRGB 4 ani în urmă
părinte
comite
7014d59329
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      gcp_root_ssh.sh

+ 1 - 0
gcp_root_ssh.sh

@@ -7,6 +7,7 @@
 
 
 # GCP 启用root密码登陆
 # GCP 启用root密码登陆
 sed -i "s/PermitRootLogin.*/PermitRootLogin yes/g"   /etc/ssh/sshd_config
 sed -i "s/PermitRootLogin.*/PermitRootLogin yes/g"   /etc/ssh/sshd_config
+sed -i "s/#PermitRootLogin.*/PermitRootLogin yes/g"   /etc/ssh/sshd_config
 sed -i "s/PasswordAuthentication.*/PasswordAuthentication yes/g"   /etc/ssh/sshd_config
 sed -i "s/PasswordAuthentication.*/PasswordAuthentication yes/g"   /etc/ssh/sshd_config
 
 
 # 重启ssh服务
 # 重启ssh服务