Merge branch 'initial' of github.com:linuxserver/docker-openssh-server into initial

This commit is contained in:
thelamer 2019-10-22 10:37:50 -07:00
commit bf81b75211

View File

@ -42,13 +42,11 @@ fi
if [ "$PASSWORD_ACCESS" == "true" ]; then
sed -i '/^#PasswordAuthentication/c\PasswordAuthentication yes' /etc/ssh/sshd_config
sed -i '/^PasswordAuthentication/c\PasswordAuthentication yes' /etc/ssh/sshd_config
sed -i '/UsePAM/c\UsePAM yes' /etc/ssh/sshd_config
chown root:"${USER_NAME}" \
/etc/shadow
echo "User/password ssh access is enabled."
else
sed -i '/^PasswordAuthentication/c\PasswordAuthentication no' /etc/ssh/sshd_config
sed -i '/UsePAM/c\#UsePAM no' /etc/ssh/sshd_config
chown root:root \
/etc/shadow
echo "User/password ssh access is disabled."