diff options
author | kris <kris@FreeBSD.org> | 2000-05-15 05:40:27 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-05-15 05:40:27 +0000 |
commit | 866470d7857ac6eddce0c1c9da30adbf44862d82 (patch) | |
tree | 69ec8d33de9e8d569a275fe5da24bc87b5113e70 /etc/rc.d/network1 | |
parent | 45c7889547651df909ccf05be4ef51b4a7577bb6 (diff) | |
download | FreeBSD-src-866470d7857ac6eddce0c1c9da30adbf44862d82.zip FreeBSD-src-866470d7857ac6eddce0c1c9da30adbf44862d82.tar.gz |
Create a DSA host key if one does not already exist, and teach sshd_config
about it.
Diffstat (limited to 'etc/rc.d/network1')
-rw-r--r-- | etc/rc.d/network1 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index a03e000..50ab079 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -621,10 +621,15 @@ network_pass3() { case ${sshd_enable} in [Yy][Ee][Ss]) if [ ! -f /etc/ssh/ssh_host_key ]; then - echo ' creating ssh host key'; + echo ' creating ssh RSA host key'; /usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_key fi ;; + if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then + echo ' creating ssh DSA host key'; + /usr/bin/ssh-keygen -d -N "" -f /etc/ssh/ssh_host_dsa_key + fi + ;; esac echo '.' |