summaryrefslogtreecommitdiff
path: root/templates/service/ssh/node.def
blob: 7117a2fdb2902f396587e08b1d99f7c1987af561 (plain)
1
2
3
4
5
6
7
8
priority: 500 # After syslog and logins
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
     STR="SSHD_OPTS=\"-p $VAR(port/@)\""
     sudo sh -c "echo '$STR' > /etc/default/ssh"
     sudo /usr/sbin/invoke-rc.d ssh restart