diff options
Diffstat (limited to 'contrib/redhat/sshd.init.old')
-rwxr-xr-x | contrib/redhat/sshd.init.old | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/contrib/redhat/sshd.init.old b/contrib/redhat/sshd.init.old index 0deb6080e..8a30f7da4 100755 --- a/contrib/redhat/sshd.init.old +++ b/contrib/redhat/sshd.init.old | |||
@@ -24,7 +24,6 @@ prog="sshd" | |||
24 | # Some functions to make the below more readable | 24 | # Some functions to make the below more readable |
25 | KEYGEN=/usr/bin/ssh-keygen | 25 | KEYGEN=/usr/bin/ssh-keygen |
26 | SSHD=/usr/sbin/sshd | 26 | SSHD=/usr/sbin/sshd |
27 | RSA1_KEY=/etc/ssh/ssh_host_key | ||
28 | RSA_KEY=/etc/ssh/ssh_host_rsa_key | 27 | RSA_KEY=/etc/ssh/ssh_host_rsa_key |
29 | DSA_KEY=/etc/ssh/ssh_host_dsa_key | 28 | DSA_KEY=/etc/ssh/ssh_host_dsa_key |
30 | PID_FILE=/var/run/sshd.pid | 29 | PID_FILE=/var/run/sshd.pid |
@@ -61,21 +60,6 @@ my_failure() { | |||
61 | ;; | 60 | ;; |
62 | esac | 61 | esac |
63 | } | 62 | } |
64 | do_rsa1_keygen() { | ||
65 | if [ ! -s $RSA1_KEY ]; then | ||
66 | echo -n "Generating SSH1 RSA host key: " | ||
67 | if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then | ||
68 | chmod 600 $RSA1_KEY | ||
69 | chmod 644 $RSA1_KEY.pub | ||
70 | my_success "RSA1 key generation" | ||
71 | echo | ||
72 | else | ||
73 | my_failure "RSA1 key generation" | ||
74 | echo | ||
75 | exit 1 | ||
76 | fi | ||
77 | fi | ||
78 | } | ||
79 | do_rsa_keygen() { | 63 | do_rsa_keygen() { |
80 | if [ ! -s $RSA_KEY ]; then | 64 | if [ ! -s $RSA_KEY ]; then |
81 | echo -n "Generating SSH2 RSA host key: " | 65 | echo -n "Generating SSH2 RSA host key: " |
@@ -119,7 +103,6 @@ do_restart_sanity_check() { | |||
119 | case "$1" in | 103 | case "$1" in |
120 | start) | 104 | start) |
121 | # Create keys if necessary | 105 | # Create keys if necessary |
122 | do_rsa1_keygen; | ||
123 | do_rsa_keygen; | 106 | do_rsa_keygen; |
124 | do_dsa_keygen; | 107 | do_dsa_keygen; |
125 | 108 | ||