From d10919aae8027c31da548db63ce102264b6d83e1 Mon Sep 17 00:00:00 2001 From: jesper Date: Wed, 16 May 2001 19:23:54 +0000 Subject: 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 --- etc/rc.d/network1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'etc/rc.d/network1') diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index 26e3df0..65e79ae 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -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'; -- cgit v1.1