summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-16 11:29:38 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-16 15:38:10 -0800
commit8960375b2a9f11d413152b67f81ca765b157c711 (patch)
tree29f906173a5264dea02f4d5d301c40d0a2e89b38 /templates
parentaa5623e32defe0412c47e38dbf9de5ed2448a975 (diff)
downloadvyatta-cfg-system-8960375b2a9f11d413152b67f81ca765b157c711.tar.gz
vyatta-cfg-system-8960375b2a9f11d413152b67f81ca765b157c711.zip
Add option to disable host validation (DNS) for SSH
Bug 4970 New CLI control of UseDNS option to sshd_config set service ssh disable-host-validation
Diffstat (limited to 'templates')
-rw-r--r--templates/service/ssh/disable-host-validation/node.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/service/ssh/disable-host-validation/node.def b/templates/service/ssh/disable-host-validation/node.def
new file mode 100644
index 00000000..fff28dbd
--- /dev/null
+++ b/templates/service/ssh/disable-host-validation/node.def
@@ -0,0 +1,6 @@
+help: Don't validate the remote host name with DNS
+
+update: sudo sed -i -e '/^UseDNS/s/yes/no/' /etc/ssh/sshd_config
+
+delete: sudo sed -i -e '/^UseDNS/s/no/yes/' /etc/ssh/sshd_config
+