diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-05-15 05:40:27 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-05-15 05:40:27 +0000 |
commit | 0c11f6e1878bcea7a9092510f4ccf9d4ee93c3d7 (patch) | |
tree | cb46580f3616be67bd785a4e0cb8dd4059068c83 /etc/rc.network | |
parent | 4fc935441942f9cbe1d28342842fdfeded2e4439 (diff) | |
download | src-0c11f6e1878bcea7a9092510f4ccf9d4ee93c3d7.tar.gz src-0c11f6e1878bcea7a9092510f4ccf9d4ee93c3d7.zip |
Create a DSA host key if one does not already exist, and teach sshd_config
about it.
Notes
Notes:
svn path=/head/; revision=60578
Diffstat (limited to 'etc/rc.network')
-rw-r--r-- | etc/rc.network | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.network b/etc/rc.network index a03e0002549a..50ab079fe0fe 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -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 '.' |