summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd17
1 files changed, 0 insertions, 17 deletions
diff --git a/etc/sshd b/etc/sshd
index 24164af..285cf65 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -117,23 +117,6 @@
fwrite($fd, $sshconf);
fclose($fd);
- if($config['system']['ssh']['authorizedkeys'] <> "") {
- echo "writing /root/.ssh/authorized_keys\n";
- if (!is_dir("/root/.ssh")) {
- mkdir('/root/.ssh', 0700);
- }
- $authorizedkeys = "# This file is automatically generated at startup\n";
- $authorizedkeys .= base64_decode($config['system']['ssh']['authorizedkeys']);
- $fd = fopen("/root/.ssh/authorized_keys", "w");
- 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 */
if($config['ssh']['dsa_key'] <> "") {
unset($config['ssh']['dsa_key']);
OpenPOWER on IntegriCloud