mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
openssh: disable passwotdh auth if set in os.openelec.settings
This commit is contained in:
parent
7aa2717d06
commit
bf4c3f76d7
@ -81,10 +81,16 @@
|
||||
cp /etc/ssh/known_hosts $HOME/.ssh
|
||||
fi
|
||||
|
||||
# Check if password authentication is disabled
|
||||
OPTIONS=""
|
||||
|
||||
if [ "$SSHD_DISABLE_PW_AUTH" == "true" ] ; then
|
||||
OPTIONS="-o 'PasswordAuthentication no'"
|
||||
fi
|
||||
progress "Starting SSH Server"
|
||||
|
||||
mkdir -p /var/empty
|
||||
chmod -R 600 /var/empty
|
||||
$SSHD
|
||||
eval $SSHD $OPTIONS
|
||||
fi
|
||||
)&
|
||||
|
Loading…
x
Reference in New Issue
Block a user