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
How do I stop GitX asking me for my SSH key password?
-
29-06-2022 - |
Question
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 = git@github.com: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
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?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow