summaryrefslogtreecommitdiff
path: root/templates/service/ssh/disable-password-authentication/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-03 10:55:59 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-03 10:55:59 -0800
commita83faa7789ddb8c930a973774e5cedf062e10919 (patch)
tree30419b551f7242518182ac13e2440e878eb9c089 /templates/service/ssh/disable-password-authentication/node.def
parentee87a223623a80469beec50a2c0b6c0c121fe99b (diff)
downloadvyatta-cfg-quagga-a83faa7789ddb8c930a973774e5cedf062e10919.tar.gz
vyatta-cfg-quagga-a83faa7789ddb8c930a973774e5cedf062e10919.zip
SSH enhancements
Add public key support Convert allow-root and password-authentication from boolean nodes to regular nodes.
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