daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Jul 31st, 2012 237 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top