diff options
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -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']); |