aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/routing
diff options
context:
space:
mode:
authorJesper Skriver <jesper@FreeBSD.org>2001-05-16 19:23:54 +0000
committerJesper Skriver <jesper@FreeBSD.org>2001-05-16 19:23:54 +0000
commitb10cf90768144cad71d48ca11fd6b083a6575f80 (patch)
treeb1c667ae5e7474ba834a5647c89fa9fad8248b09 /etc/rc.d/routing
parenta70a79ad2d5e33ae1d7badb02edc4f73f4c7c6f3 (diff)
downloadsrc-b10cf90768144cad71d48ca11fd6b083a6575f80.tar.gz
src-b10cf90768144cad71d48ca11fd6b083a6575f80.zip
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
Notes
Notes: svn path=/head/; revision=76695
Diffstat (limited to 'etc/rc.d/routing')
-rw-r--r--etc/rc.d/routing9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 26e3df09b873..65e79aee2fa8 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -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';