remove debug mode
This commit is contained in:
parent
6f1544c7f0
commit
33a3f888cb
@ -10,11 +10,9 @@ if [ "${KEYPAIR_LOGIN}" = "true" ] && [ -f "${HOME}/.ssh/authorized_keys" ] ; th
|
|||||||
echo "Enabled root-login by keypair and disabled password-login"
|
echo "Enabled root-login by keypair and disabled password-login"
|
||||||
else
|
else
|
||||||
sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config
|
sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config
|
||||||
set +x
|
|
||||||
if [ -n "${ROOT_PASSWORD}" ] && [ "${ROOT_PASSWORD}" != "root" ]; then
|
if [ -n "${ROOT_PASSWORD}" ] && [ "${ROOT_PASSWORD}" != "root" ]; then
|
||||||
echo "root:${ROOT_PASSWORD}" | chpasswd
|
echo "root:${ROOT_PASSWORD}" | chpasswd
|
||||||
fi
|
fi
|
||||||
set -x
|
|
||||||
echo "Enabled root-login by password"
|
echo "Enabled root-login by password"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user