Explorar el Código

Update gcp_root_ssh.sh

蘭雅sRGB hace 6 años
padre
commit
0aea8b0166
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      gcp_root_ssh.sh

+ 3 - 3
gcp_root_ssh.sh

@@ -5,12 +5,12 @@
 #  GCP一键启用root帐号命令
 #  wget -qO- git.io/fpQWf | bash
 
-# 修改root 密码
-passwd
-
 # GCP 启用root密码登陆
 sed -i "s/PermitRootLogin.*/PermitRootLogin yes/g"   /etc/ssh/sshd_config
 sed -i "s/PasswordAuthentication.*/PasswordAuthentication yes/g"   /etc/ssh/sshd_config
 
 # 重启ssh服务
 systemctl restart ssh
+
+# 修改root 密码
+passwd