1
0
蘭雅sRGB 4 жил өмнө
parent
commit
7014d59329
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  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服务