فهرست منبع

Update LinuxInit.sh

MoeClub 4 سال پیش
والد
کامیت
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'