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/disable-password-authentication/node.def | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 templates/service/ssh/disable-password-authentication/node.def (limited to 'templates/service/ssh/disable-password-authentication/node.def') diff --git a/templates/service/ssh/disable-password-authentication/node.def b/templates/service/ssh/disable-password-authentication/node.def new file mode 100644 index 00000000..59abacfc --- /dev/null +++ b/templates/service/ssh/disable-password-authentication/node.def @@ -0,0 +1,5 @@ +help: Don't allow unknown user to login with password + +update: sudo sed -i -e '/^PasswordAuthentication/s/yes/no/' /etc/ssh/sshd_config + +delete: sudo sed -i -e '/^PasswordAuthentication/s/no/yes/' /etc/ssh/sshd_config -- cgit v1.2.3