initial commit [141.14.140.180,mike]

This commit is contained in:
2026-08-10 16:12:09 +02:00
commit c534ea1c79
66 changed files with 9244 additions and 0 deletions
Executable
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/perl
$SSHCONF='/etc/ssh/sshd_config';
$out="";
open(IN,$SSHCONF);
while(<IN>) {
if (/^\s*\#*\s*PermitRootLogin/) {
$out.="PermitRootLogin yes\n" ;
} elsif (/(^\s*AcceptEnv.*$)/) {
$out.="#$1";
} else {
$out.=$_;
}
}
close(IN);
open(OUT,"> $SSHCONF");
print OUT $out;
close(OUT);
system("service ssh restart");