diff options
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/etc/network.subr b/etc/network.subr index 8d779ea..d7e8bca 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -853,15 +853,20 @@ network_pass3() { [Yy][Ee][Ss]) if [ -x /usr/bin/ssh-keygen ]; then if [ ! -f /etc/ssh/ssh_host_key ]; then - echo ' creating ssh RSA host key'; - /usr/bin/ssh-keygen -trsa1 -N "" \ + echo ' creating ssh protocol v1 RSA host key'; + /usr/bin/ssh-keygen -t rsa1 -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 -tdsa -N "" \ + echo ' creating ssh protocol v2 DSA host key'; + /usr/bin/ssh-keygen -t dsa -N "" \ -f /etc/ssh/ssh_host_dsa_key fi + if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then + echo ' creating ssh protocol v2 RSA host key'; + /usr/bin/ssh-keygen -t rsa -N "" \ + -f /etc/ssh/ssh_host_rsa_key + fi fi ;; esac |