openhab-docker/contrib/cont-init.d/20-add-allowed-ssh-keys

13 lines
247 B
Bash

#!/bin/bash -ex
cat > "${OPENHAB_USERDATA}/etc/keys.properties" <<EOF
#
# For security reason, the default auto-signed key is disabled.
#
openhab=A...your-ssh-public-key-here...B,_g_:admingroup
_g_\:admingroup = group,admin,manager,viewer
EOF