3 if [ -z "$TARGET" -o ! -d "$TARGET" ]; then
4 echo "Missing target directory"
8 # user to give access to. can be hardcoded or fetched from some other place
13 if [ -f /home/$USER/.ssh/id_$KEYTYPE.pub ]; then
14 install -D -m 0700 -o root -g root \
15 /home/$USER/.ssh/id_$KEYTYPE.pub $TARGET/root/.ssh/authorized_keys