Peter Nixey
Peter Nixey

Reputation: 16565

How do I stop GitX asking me for my SSH key password?

In order to let myself log into two different Heroku accounts I'm using .git/config

[core]
  repositoryformatversion = 0
  filemode = true
  bare = false
  logallrefupdates = true
  ignorecase = true
[branch "master"]
[remote "heroku"]
  url = git@myrepo:myrepo.git
  fetch = +refs/heads/*:refs/remotes/heroku/*
[remote "origin"]
  url = [email protected]:peternixey/myrepo.git
  fetch = +refs/heads/*:refs/remotes/origin/*

and ~/.ssh/config:

Host myrepo
  HostName heroku.com
  IdentityFile ~/.ssh/myrepo
  IdentitiesOnly yes

GitX doesn't seem to be able to handle this

enter image description here

GitX doesn't seem to be picking up the correct key for the account. It keeps trying to use id_rsa.pub when the correct key is myrepo.pub. There is also a passphrase on the RSA key itself.

This is GitX(l) (as in L for Lima) and it's basically unusable in the current configuration, how can I stop the password demands?

Upvotes: 2

Views: 779

Answers (1)

Peter Nixey
Peter Nixey

Reputation: 16565

I managed to fix this by deleting the previous keys and regenerating them. I think that somehow GitX had got caught up with the wrong key (or else I was entering the wrong password). Seemed more likely to be my fault than GitX's

Upvotes: 1

Related Questions