diff options
author | Chris Buechler <cmb@cmb-macbook-pro-3.local> | 2009-12-28 00:15:03 -0500 |
---|---|---|
committer | Chris Buechler <cmb@cmb-macbook-pro-3.local> | 2009-12-28 00:15:03 -0500 |
commit | 39618326e0ddd3d79f2596b6a11d9bc09da6ded0 (patch) | |
tree | 7a7e5222637e9561135eb0b479e74e2ae2b15609 | |
parent | 7921e8e514a726e4448b0bb1c8c5295a00b5897d (diff) | |
download | pfsense-39618326e0ddd3d79f2596b6a11d9bc09da6ded0.zip pfsense-39618326e0ddd3d79f2596b6a11d9bc09da6ded0.tar.gz |
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
-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']); |