distribution/packages/network/openssh/daemons/001-ssh
2023-04-01 12:23:19 +00:00

13 lines
356 B
Text
Executable file

STATE=$(get_setting ssh.enabled)
SVC="sshd"
CONF="sshd.conf"
DAEMONS=("sshd")
# Prepare authorized keys if they exist
if [ ! -e "/storage/.ssh/authorized_keys" ] && \
[ -e "/usr/config/ssh/authorized_keys" ]
then
mkdir -p /storage/.ssh/
cp /usr/config/ssh/authorized_keys /storage/.ssh/authorized_keys
chmod 0610 /storage/.ssh/authorized_keys
fi