Skip to content

Instantly share code, notes, and snippets.

@anabelle anabelle/sshadd.sh
Created Dec 25, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.