summaryrefslogtreecommitdiff
path: root/templates/service/ssh/disable-password-authentication/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service/ssh/disable-password-authentication/node.def')
-rw-r--r--templates/service/ssh/disable-password-authentication/node.def5
1 files changed, 5 insertions, 0 deletions
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