Skip to content

Instantly share code, notes, and snippets.

@iamdionysus
Created December 18, 2013 02:19
Show Gist options
  • Save iamdionysus/8016315 to your computer and use it in GitHub Desktop.
Save iamdionysus/8016315 to your computer and use it in GitHub Desktop.
Generate a private/public key pair for password-less authentication. http://superuser.com/questions/338511/how-do-i-disable-password-prompts-when-doing-git-push-pull
$ ssh-keygen -t rsa
$ scp ~/.ssh/id_rsa.pub user@git.repo:id_rsa.tmp
$ ssh user@git.repo
$ cat id_rsa.tmp >> .ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment