Commit 9603d5df authored by Tom Pillot's avatar Tom Pillot
Browse files

Add ssh key to known hosts and setup avahi daemon

parent 0333be25
#!/bin/bash -e
# Add an authorized ssh key for MeshCentral deployment
mkdir -p "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.ssh"
echo 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJZ1g3+sGOgRyd55VLYYGsnFYUJ1B/1c2gUUhzT2tRnfZ8MdsvdWwM/XVnlG3uhrm62ZgER0YqKf0xK163mvjNM= thymio' > "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.ssh/authorized_keys"
# Setup avahi daemon so the pi can be found with avahi-browse on the network
sed -i 's/^publish-workstation=no/publish-workstation=yes/' "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment