Skip to content

Commit ac7f7b5

Browse files
committed
Enabled PasswordAuthentication in sshd by default
1 parent e897237 commit ac7f7b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/extra/ssh/deploy.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ do_install()
4444
do_configure()
4545
{
4646
msg ":: Configuring ${COMPONENT} ... "
47-
sed -i -E 's/#?PermitRootLogin .*/PermitRootLogin yes/g' "${CHROOT_DIR}/etc/ssh/sshd_config"
48-
sed -i -E 's/#?AcceptEnv .*/AcceptEnv LANG/g' "${CHROOT_DIR}/etc/ssh/sshd_config"
47+
local sshd_config
48+
sshd_config="${CHROOT_DIR}/etc/ssh/sshd_config"
49+
sed -i -E 's/#?PasswordAuthentication .*/PasswordAuthentication yes/g' "${sshd_config}"
50+
sed -i -E 's/#?PermitRootLogin .*/PermitRootLogin yes/g' "${sshd_config}"
51+
sed -i -E 's/#?AcceptEnv .*/AcceptEnv LANG/g' "${sshd_config}"
4952
return 0
5053
}
5154

0 commit comments

Comments
 (0)