diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-03 12:23:38 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-03 12:23:38 -0800 |
commit | a907683b2f0b69581bc8c770020702c18e112e87 (patch) | |
tree | b7ae6a06d0f6bdffdf259f582275456867eb175a /templates/service/ssh/disable-password-authentication/node.def | |
parent | 102bab7843f56b9b8c43bac5690d9afd5f894737 (diff) | |
parent | bb4083fa12386e9417e4dbae38325deb03d821e7 (diff) | |
download | vyatta-cfg-system-a907683b2f0b69581bc8c770020702c18e112e87.tar.gz vyatta-cfg-system-a907683b2f0b69581bc8c770020702c18e112e87.zip |
Merge branch 'kenwood' of 192.168.100.1:git/vyatta-cfg-system into kenwood
Diffstat (limited to 'templates/service/ssh/disable-password-authentication/node.def')
-rw-r--r-- | templates/service/ssh/disable-password-authentication/node.def | 5 |
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 |