Link /etc/ssh/ssh_host_key to /etc/ssh/ssh_host_rsa_key to deal with

gratutious changes in the latest SSH

Reviewed by:	obrien
Approved by:	obrien
This commit is contained in:
Jesper Skriver 2001-05-16 19:23:54 +00:00
parent a70a79ad2d
commit b10cf90768
7 changed files with 49 additions and 14 deletions

View File

@ -721,8 +721,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
echo ' creating ssh RSA host key';
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key
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
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
echo ' creating ssh DSA host key';

View File

@ -721,8 +721,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
echo ' creating ssh RSA host key';
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key
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
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
echo ' creating ssh DSA host key';

View File

@ -721,8 +721,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
echo ' creating ssh RSA host key';
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key
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
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
echo ' creating ssh DSA host key';

View File

@ -721,8 +721,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
echo ' creating ssh RSA host key';
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key
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
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
echo ' creating ssh DSA host key';

View File

@ -721,8 +721,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
echo ' creating ssh RSA host key';
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key
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
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
echo ' creating ssh DSA host key';

View File

@ -721,8 +721,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
echo ' creating ssh RSA host key';
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key
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
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
echo ' creating ssh DSA host key';

View File

@ -721,8 +721,13 @@ network_pass3() {
case ${sshd_enable} in
[Yy][Ee][Ss])
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
echo ' creating ssh RSA host key';
/usr/bin/ssh-keygen -N "" -f /etc/ssh/ssh_host_rsa_key
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
fi
if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
echo ' creating ssh DSA host key';