summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/sshd4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/sshd b/etc/sshd
index eca1fb7..0bbe3d3 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -125,6 +125,10 @@
fwrite($fd, $authorizedkeys);
pclose($fd);
chmod("/root/.ssh/authorized_keys",0644);
+ } else {
+ if(file_exists("/root/.ssh/authorized_keys")) {
+ unlink("/root/.ssh/authorized_keys");
+ }
}
/* mop up from a badly implemented ssh keys -> cf backup */
OpenPOWER on IntegriCloud