From 4ed59b9f9abe50e14bfdabe6cf85777444bb2bcc Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 2 Feb 2010 11:13:34 -0800 Subject: Fix password-authentication setup in sshd Bug 5301 Need to setup sshd_config during install to allow configure later --- debian/vyatta-cfg-system.postinst.in | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3