diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-09 19:38:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-09 19:38:58 +0000 |
commit | 0a4869c539c76613912ffa7a21e069a06de4621e (patch) | |
tree | b300d1b2500401f3a56fdc41a8ed530030e41707 /etc/sshd | |
parent | 3b18f1753b6805019a44f9c7df7d70e403565a40 (diff) | |
download | pfsense-0a4869c539c76613912ffa7a21e069a06de4621e.zip pfsense-0a4869c539c76613912ffa7a21e069a06de4621e.tar.gz |
Sync /root/.authorized_keys on boot
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -136,6 +136,12 @@ chmod("{$sshConfigDir}/ssh_host_dsa_key.pub",0600); } + if($config['ssh']['ak'] <> "") { + $ak = base64_decode($config['ssh']['ak']); + file_put_contents("/root/.authorized_keys", $ak); + chmod("/root/.authorized_keys",0600); + } + /* start sshd */ system("/usr/sbin/sshd"); fwrite($stderr, "Done.\n"); |