summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-02 11:13:34 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-02 11:13:34 -0800
commit4ed59b9f9abe50e14bfdabe6cf85777444bb2bcc (patch)
tree5d6772bf91dffef5fac057d77b3cddcabbe7425b
parent152182a20b4261a0826d2d84e4a84589302dd97b (diff)
downloadvyatta-cfg-system-4ed59b9f9abe50e14bfdabe6cf85777444bb2bcc.tar.gz
vyatta-cfg-system-4ed59b9f9abe50e14bfdabe6cf85777444bb2bcc.zip
Fix password-authentication setup in sshd
Bug 5301 Need to setup sshd_config during install to allow configure later
-rw-r--r--debian/vyatta-cfg-system.postinst.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 1f0b133e..ec1b293b 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -47,6 +47,9 @@ if [ "$sysconfdir" != "/etc" ]; then
sed -i 's/^#Banner/Banner/' /etc/ssh/sshd_config
# make sure PermitRoot is off
sed -i '/^PermitRootLogin/s/yes/no/' /etc/ssh/sshd_config
+ # make sure PasswordAuthentication is on
+ sed -i 's/^#PasswordAuthentication/PasswordAuthentication/' /etc/ssh/sshd_config
+ sed -i '/^PasswordAuthentication/s/no/yes/' /etc/ssh/sshd_config
# for "admin" level
sed -i 's/^# %sudo ALL=NOPASSWD: ALL/%sudo ALL=NOPASSWD: ALL/' /etc/sudoers