From 39618326e0ddd3d79f2596b6a11d9bc09da6ded0 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 28 Dec 2009 00:15:03 -0500 Subject: remove old function from 1_2, it just wipes out the authorized_keys file breaking SSH access with the way 2.0 handles SSH keys. writing out the keys is handled by the user manager now --- etc/sshd | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'etc/sshd') 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']); -- cgit v1.1