Skip to content

Instantly share code, notes, and snippets.

@anabelle
Created December 25, 2011 01:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anabelle/1518622 to your computer and use it in GitHub Desktop.
Save anabelle/1518622 to your computer and use it in GitHub Desktop.
add ssh key to server
# Agregar esto a .bashrc o a .bash_aliases
# Uso: add_ssh usuario@servidor.tld
function add_ssh {
cat ~/.ssh/id_rsa.pub | ssh $1 'cat >> .ssh/authorized_keys'
}
export -f add_ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment