We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e897237 commit ac7f7b5Copy full SHA for ac7f7b5
include/extra/ssh/deploy.sh
@@ -44,8 +44,11 @@ do_install()
44
do_configure()
45
{
46
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"
+ local sshd_config
+ 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}"
52
return 0
53
}
54
0 commit comments