# Geek # # *NIX #

Updating git settings for ssh auth

Updating git settings for ssh

With all git providers disabling simple https login for push; a quick reminder of how to setup ssh connection for local git branch

  1. Use ssh keygen to generate your keys (using ssh-keygen)
  2. Add the private key in the web interface of git hosting company, it depends
  3. Add identity to authentication agent
    ssh-add ~/.ssh/id_rsa
  4. Test ssh connection
    ssh -T git@bitbucket.org
  5. Change method from https to git (ssh)
    git remote set-url origin git@bitbucket.org:jupiter126/simpleveggiegarden.git
  6. Push changes if any
    git push

And voila, nothing new, but a bit less googling for me next time I'm stuck in an old repo!


view_list Categories