From 8960375b2a9f11d413152b67f81ca765b157c711 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 16 Nov 2010 11:29:38 -0800 Subject: 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 --- templates/service/ssh/disable-host-validation/node.def | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 templates/service/ssh/disable-host-validation/node.def (limited to 'templates/service') 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 + -- cgit v1.2.3