diff options
author | obrien <obrien@FreeBSD.org> | 2001-05-18 18:10:02 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-05-18 18:10:02 +0000 |
commit | bac609c202ccd3f77baec4e2cbba8f8c8756af98 (patch) | |
tree | 0125f96978511303285162b8731f736d36084159 | |
parent | f6b3b57bdd72c15c5e3c1c930a156b71c42090ee (diff) | |
download | FreeBSD-src-bac609c202ccd3f77baec4e2cbba8f8c8756af98.zip FreeBSD-src-bac609c202ccd3f77baec4e2cbba8f8c8756af98.tar.gz |
Restore the RSA host key to /etc/ssh/ssh_host_key.
Also fix $FreeBSD$ spamage in crypto/openssh/sshd_config rev. 1.16.
-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 dad02ea..854311f 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 65e79ae..fbe8bf3 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 65e79ae..fbe8bf3 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 65e79ae..fbe8bf3 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 65e79ae..fbe8bf3 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 65e79ae..fbe8bf3 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 65e79ae..fbe8bf3 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 65e79ae..fbe8bf3 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'; |