Skip to content

Instantly share code, notes, and snippets.

@sati2013
Created March 28, 2015 06:58
Show Gist options
  • Save sati2013/6404187204d0ea5588cf to your computer and use it in GitHub Desktop.
Save sati2013/6404187204d0ea5588cf to your computer and use it in GitHub Desktop.
push public key
push_key() {
ssh-add -L | ssh ${1} "umask 077; [ -d .ssh ] || mkdir .ssh; cd .ssh; cat >> authorized_keys;ls -la authorized_keys"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment