#!/bin/bash if [ "$UID" -ne 0 ]; then echo "THIS SHOULD BE EXECUTED AS ROOT" else [ -e /root/.ssh ] || mkdir -p /root/.ssh echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINaivQdi1Nre/gGiCw1Rz94tX87EPKgKDk8faKW36u0e vanecka@MCF1874' >> /root/.ssh/authorized_keys chmod 0600 /root/.ssh/authorized_keys chmod 0700 /root/.ssh fi