summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-15 15:05:48 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-15 15:20:40 -0800
commit6fd0892d1ee741a652067a35c8cb070858d5f95a (patch)
tree0ffd053dcd1587ef2850af33679fcc78ea43d564 /templates
parentf653df56f064bd6278b6354785664957a471650a (diff)
downloadvyatta-cfg-quagga-6fd0892d1ee741a652067a35c8cb070858d5f95a.tar.gz
vyatta-cfg-quagga-6fd0892d1ee741a652067a35c8cb070858d5f95a.zip
Don't regenerate ssh v1 key
The key generation is done during installation or earlier in rl-system.init
Diffstat (limited to 'templates')
-rw-r--r--templates/service/ssh/node.def5
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/service/ssh/node.def b/templates/service/ssh/node.def
index a5e46e1e..55f94551 100644
--- a/templates/service/ssh/node.def
+++ b/templates/service/ssh/node.def
@@ -3,15 +3,12 @@ help: Secure SHell (SSH) protocol
delete:sudo /usr/sbin/invoke-rc.d ssh stop
sudo sh -c "echo 'SSHD_OPTS=' > /etc/default/ssh"
end: if [ -z "$VAR(port/@)" ]; then exit 0; fi;
- if [ ! -f /etc/ssh/ssh_host_key ]; then
- sudo ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key
- fi
case $VAR(protocol-version/@) in
v2) VER=2;;
v1) VER=1;;
all) VER="1,2";;
*) VER=2;;
esac;
- STR="SSHD_OPTS=\"-p $VAR(port/@) -o Hostkey=/etc/ssh/ssh_host_key -o Protocol=${VER}\""
+ STR="SSHD_OPTS=\"-p $VAR(port/@) -o Protocol=${VER}\""
sudo sh -c "echo '$STR' > /etc/default/ssh"
sudo /usr/sbin/invoke-rc.d ssh restart