mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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
|
cp /etc/ssh/known_hosts $HOME/.ssh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check if password authentication is disabled
|
||||||
|
OPTIONS=""
|
||||||
|
|
||||||
|
if [ "$SSHD_DISABLE_PW_AUTH" == "true" ] ; then
|
||||||
|
OPTIONS="-o 'PasswordAuthentication no'"
|
||||||
|
fi
|
||||||
progress "Starting SSH Server"
|
progress "Starting SSH Server"
|
||||||
|
|
||||||
mkdir -p /var/empty
|
mkdir -p /var/empty
|
||||||
chmod -R 600 /var/empty
|
chmod -R 600 /var/empty
|
||||||
$SSHD
|
eval $SSHD $OPTIONS
|
||||||
fi
|
fi
|
||||||
)&
|
)&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user