Skip to content

Instantly share code, notes, and snippets.

@anthonysomerset
Created November 8, 2011 10:50
Show Gist options
  • Save anthonysomerset/1347482 to your computer and use it in GitHub Desktop.
Save anthonysomerset/1347482 to your computer and use it in GitHub Desktop.
bashrc fragment for mac users
myssh-copy-id()
{
cat ~/.ssh/id_rsa.pub | ssh $1 "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
}
alias ssh-copy-id=myssh-copy-id
@tonypiper
Copy link

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment