Skip to content

Instantly share code, notes, and snippets.

@theneubeck
Created February 10, 2010 16:15
Show Gist options
  • Save theneubeck/300483 to your computer and use it in GitHub Desktop.
Save theneubeck/300483 to your computer and use it in GitHub Desktop.
bash remember me
function remember_me {
ssh $1 'mkdir -p .ssh && touch .ssh/authorized_keys \
&& chmod 0700 .ssh \
&& chmod 0600 .ssh/authorized_keys \
&& cat >> .ssh/authorized_keys' <~/.ssh/id_rsa.pub
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment