From a83faa7789ddb8c930a973774e5cedf062e10919 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 3 Dec 2009 10:55:59 -0800 Subject: SSH enhancements Add public key support Convert allow-root and password-authentication from boolean nodes to regular nodes. --- templates/service/ssh/password-authentication/node.def | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 templates/service/ssh/password-authentication/node.def (limited to 'templates/service/ssh/password-authentication') diff --git a/templates/service/ssh/password-authentication/node.def b/templates/service/ssh/password-authentication/node.def deleted file mode 100644 index c17dd47c..00000000 --- a/templates/service/ssh/password-authentication/node.def +++ /dev/null @@ -1,14 +0,0 @@ -type: bool -default: true -help: Allow user's to login with password -update: if [ "$VAR(@)" == "true" ]; - then regex='/^PasswordAuthentication/s/no/yes/' - else regex='/^PasswordAuthentication/s/yes/no/' - fi - sudo sed -i -e "$regex" /etc/ssh/sshd_config - -comp_help: possible completions: - true Allow authentication with password - false Disable authentication with password (secure) - -allowed: echo "true false" -- cgit v1.2.3