summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@cmb-macbook-pro-3.local>2009-12-28 00:15:03 -0500
committerChris Buechler <cmb@cmb-macbook-pro-3.local>2009-12-28 00:15:03 -0500
commit39618326e0ddd3d79f2596b6a11d9bc09da6ded0 (patch)
tree7a7e5222637e9561135eb0b479e74e2ae2b15609
parent7921e8e514a726e4448b0bb1c8c5295a00b5897d (diff)
downloadpfsense-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-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