Bläddra i källkod

Update LinuxInit.sh

MoeClub 4 år sedan
förälder
incheckning
3698d167a9
1 ändrade filer med 4 tillägg och 0 borttagningar
  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'