Browse Source

Update LinuxInit.sh

MoeClub 4 years ago
parent
commit
3698d167a9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      LinuxInit.sh

+ 4 - 0
LinuxInit.sh

@@ -1,5 +1,9 @@
 #!/bin/bash
 
+# root
+sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
+sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
+
 # limits
 if [ -f /etc/security/limits.conf ]; then
   LIMIT='262144'