Guest User

Untitled

a guest
Jul 31st, 2012
312
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ssh-send-id () {
  2. if [ -z "$1" -o -z "$2" ]
  3. then
  4. echo "Usage: ssh-send-id pubkey_name machine"
  5. return 1
  6. fi
  7. cat ~/.ssh/${1}.pub | ssh $2 'mkdir .ssh; cat >> .ssh/authorized_keys'
  8. return $?
  9. }
RAW Paste Data