diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2001-05-18 18:10:02 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-05-18 18:10:02 +0000 |
| commit | d3ebe37cd0482cc26f8a8a7b31efd90cdef05128 (patch) | |
| tree | 721b51934979fd6bbed9a3859c99f6f4ad39cb3c | |
| parent | 34da77aac7dc5751cfff7a9f0fb4a63cfa6c8d6a (diff) | |
Notes
| -rw-r--r-- | crypto/openssh/sshd_config | 3 | ||||
| -rw-r--r-- | etc/network.subr | 11 | ||||
| -rw-r--r-- | etc/rc.d/netoptions | 11 | ||||
| -rw-r--r-- | etc/rc.d/network1 | 11 | ||||
| -rw-r--r-- | etc/rc.d/network2 | 11 | ||||
| -rw-r--r-- | etc/rc.d/network3 | 11 | ||||
| -rw-r--r-- | etc/rc.d/routing | 11 | ||||
| -rw-r--r-- | etc/rc.network | 11 |
8 files changed, 22 insertions, 58 deletions
diff --git a/crypto/openssh/sshd_config b/crypto/openssh/sshd_config index dad02ea812b1..854311f91087 100644 --- a/crypto/openssh/sshd_config +++ b/crypto/openssh/sshd_config @@ -1,5 +1,5 @@ # $OpenBSD: sshd_config,v 1.38 2001/04/15 21:41:29 deraadt Exp $ -# $FreeBSD$ +# $FreeBSD$ # This is the sshd server system-wide configuration file. See sshd(8) # for more information. @@ -9,7 +9,6 @@ Port 22 #ListenAddress 0.0.0.0 #ListenAddress :: HostKey /etc/ssh/ssh_host_key -HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key ServerKeyBits 768 LoginGraceTime 120 diff --git a/etc/network.subr b/etc/network.subr index 65e79aee2fa8..fbe8bf3692e9 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -720,14 +720,9 @@ network_pass3() { case ${sshd_enable} in [Yy][Ee][Ss]) - if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - if [ -f /etc/ssh/ssh_host_key ]; then - /bin/ln -s /etc/ssh/ssh_host_key /etc/ssh/ssh_host_rsa_key - /bin/ln -s /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key.pub - else - echo ' creating ssh RSA host key'; - /usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key - fi + if [ ! -f /etc/ssh/ssh_host_key ]; then + 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'; diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index 65e79aee2fa8..fbe8bf3692e9 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -720,14 +720,9 @@ network_pass3() { case ${sshd_enable} in [Yy][Ee][Ss]) - if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - if [ -f /etc/ssh/ssh_host_key ]; then - /bin/ln -s /etc/ssh/ssh_host_key /etc/ssh/ssh_host_rsa_key - /bin/ln -s /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key.pub - else - echo ' creating ssh RSA host key'; - /usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key - fi + if [ ! -f /etc/ssh/ssh_host_key ]; then + 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'; diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index 65e79aee2fa8..fbe8bf3692e9 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -720,14 +720,9 @@ network_pass3() { case ${sshd_enable} in [Yy][Ee][Ss]) - if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - if [ -f /etc/ssh/ssh_host_key ]; then - /bin/ln -s /etc/ssh/ssh_host_key /etc/ssh/ssh_host_rsa_key - /bin/ln -s /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key.pub - else - echo ' creating ssh RSA host key'; - /usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key - fi + if [ ! -f /etc/ssh/ssh_host_key ]; then + 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'; diff --git a/etc/rc.d/network2 b/etc/rc.d/network2 index 65e79aee2fa8..fbe8bf3692e9 100644 --- a/etc/rc.d/network2 +++ b/etc/rc.d/network2 @@ -720,14 +720,9 @@ network_pass3() { case ${sshd_enable} in [Yy][Ee][Ss]) - if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - if [ -f /etc/ssh/ssh_host_key ]; then - /bin/ln -s /etc/ssh/ssh_host_key /etc/ssh/ssh_host_rsa_key - /bin/ln -s /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key.pub - else - echo ' creating ssh RSA host key'; - /usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key - fi + if [ ! -f /etc/ssh/ssh_host_key ]; then + 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'; diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 index 65e79aee2fa8..fbe8bf3692e9 100644 --- a/etc/rc.d/network3 +++ b/etc/rc.d/network3 @@ -720,14 +720,9 @@ network_pass3() { case ${sshd_enable} in [Yy][Ee][Ss]) - if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - if [ -f /etc/ssh/ssh_host_key ]; then - /bin/ln -s /etc/ssh/ssh_host_key /etc/ssh/ssh_host_rsa_key - /bin/ln -s /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key.pub - else - echo ' creating ssh RSA host key'; - /usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key - fi + if [ ! -f /etc/ssh/ssh_host_key ]; then + 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'; diff --git a/etc/rc.d/routing b/etc/rc.d/routing index 65e79aee2fa8..fbe8bf3692e9 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -720,14 +720,9 @@ network_pass3() { case ${sshd_enable} in [Yy][Ee][Ss]) - if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - if [ -f /etc/ssh/ssh_host_key ]; then - /bin/ln -s /etc/ssh/ssh_host_key /etc/ssh/ssh_host_rsa_key - /bin/ln -s /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key.pub - else - echo ' creating ssh RSA host key'; - /usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key - fi + if [ ! -f /etc/ssh/ssh_host_key ]; then + 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'; diff --git a/etc/rc.network b/etc/rc.network index 65e79aee2fa8..fbe8bf3692e9 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -720,14 +720,9 @@ network_pass3() { case ${sshd_enable} in [Yy][Ee][Ss]) - if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - if [ -f /etc/ssh/ssh_host_key ]; then - /bin/ln -s /etc/ssh/ssh_host_key /etc/ssh/ssh_host_rsa_key - /bin/ln -s /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key.pub - else - echo ' creating ssh RSA host key'; - /usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key - fi + if [ ! -f /etc/ssh/ssh_host_key ]; then + 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'; |
