1
0
MoeClub 4 жил өмнө
parent
commit
3698d167a9
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  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'