jeroen.se
by jnieuwen
#! /bin/sh # Installs the jnieuwen ssh keys on an account. mkdir $HOME/.ssh || exit 1 chmod u+rwx $HOME/.ssh || exit 1 cat $0 | sed "1,/^CUTFROMHERE/d" >> $HOME/.ssh/authorized_keys || exit 1 chmod og-rw $HOME/.ssh/* || exit 1 chmod og-rwx $HOME/.ssh || exit 1 exit 0 CUTFROMHERE ssh-rsa AAAAB3Nz5[........]dtM0S4fdd ssh-rsa AAAAB3Nza[........]A5F7lnhdDSo I just copy this script with scp to the host and then execute: