3 # Set up keyed login to a remote host.
5 # usage: ssh-remote.sh [[uname@]remote_hostname
8 echo "usage: ssh-remote [uname@]remote_hostname"
13 PUBLIC_KEY="$HOME/.ssh/id_rsa.pub"
14 F=".ssh/authorized_keys"
16 cat "$PUBLIC_KEY" | ssh $RHOST "touch $F; chmod 600 $F; cat >> $F"