diff options
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -117,6 +117,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 */ @@ -274,4 +278,4 @@ system("/usr/sbin/sshd"); echo "done.\n"; -?>
\ No newline at end of file +?> |