Explorar el Código

Update gcp_root_ssh.sh

蘭雅sRGB hace 4 años
padre
commit
7014d59329
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      gcp_root_ssh.sh

+ 1 - 0
gcp_root_ssh.sh

@@ -7,6 +7,7 @@
 
 # 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/PasswordAuthentication.*/PasswordAuthentication yes/g"   /etc/ssh/sshd_config
 
 # 重启ssh服务