diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 21:38:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 21:38:12 +0000 |
commit | 0ae71d819b9c0656a054106aad0e8f978454fea0 (patch) | |
tree | 41980dbf58b3f0dc997f8d052bc1938304b56e62 /etc/sshd | |
parent | 4093cb99afb2c01aca17a1846416d11ad955a6b7 (diff) | |
download | pfsense-0ae71d819b9c0656a054106aad0e8f978454fea0.zip pfsense-0ae71d819b9c0656a054106aad0e8f978454fea0.tar.gz |
Mount config rw before generating keys
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -82,6 +82,7 @@ //if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") { if (!file_exists("$sshConfigDir/ssh_host_key")) { /* remove previous keys and regen later */ + conf_mount_rw(); mwexec("rm /etc/ssh/ssh_host_*"); system("/usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key"); system("/usr/bin/ssh-keygen -t rsa -N '' -f $sshConfigDir/ssh_host_rsa_key"); |