You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I try to push/pull using gitui, I get a "Bad credentials" error. However, I am able to perform git push and git pull without issues.
To Reproduce
Steps to reproduce the behavior:
Open my git repository
Run gitui
Press f to pull.
See error.
Expected behavior
I expect for it to communicate with my SSH agent to use my credentials and successfully perform the git pull/push.
Screenshots
Pulling in terminal:
Pulling in gitui:
Context (please complete the following information):
Operating system: NixOS + 23.11.3920.25e3d4c0d359
Gitui Version: 0.26.1
Rust version: 1.77.2
Additional context
I am using 1Password as an SSH agent. However, I don't think that it should matter which specific SSH agent I am using. So I'm not entirely sure why this is occurring.
Additionally, I am definitely using SSH for my remote origin:
Thanks for the help!
The text was updated successfully, but these errors were encountered:
Yeah, this seems to be a problem with libssh2 as someone in that issue pointed out. I use a non-standard ssh-agent and libssh2 doesn't read ~/.ssh/config
This is largely a libssh2 issue (it doesn't parse ~/.ssh/config and is an incomplete ssh client implementation due to this). Until this is fixed (either upstream in libssh2, or by gitui dropping the offending dep), the ostensibly 'correct' workaround is:
Describe the bug
When I try to push/pull using gitui, I get a "Bad credentials" error. However, I am able to perform
git push
andgit pull
without issues.To Reproduce
Steps to reproduce the behavior:
gitui
f
to pull.Expected behavior
I expect for it to communicate with my SSH agent to use my credentials and successfully perform the git pull/push.
Screenshots
![image](https://private-user-images.githubusercontent.com/70014062/327929916-608b4f61-2816-466d-afe6-661c3803bd9e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MTAxMjMsIm5iZiI6MTcxOTkwOTgyMywicGF0aCI6Ii83MDAxNDA2Mi8zMjc5Mjk5MTYtNjA4YjRmNjEtMjgxNi00NjZkLWFmZTYtNjYxYzM4MDNiZDllLnBuZz9Y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NzJlNDFmNzljMTQ5MzVmN2QxOGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.NpD5-D_AkcNGPffo4p1n3QuTkjipPIUVNRx79R-5eMM)
Pulling in terminal:
Pulling in gitui:
Context (please complete the following information):
Additional context
I am using 1Password as an SSH agent. However, I don't think that it should matter which specific SSH agent I am using. So I'm not entirely sure why this is occurring.
Additionally, I am definitely using SSH for my remote origin:
![image](https://private-user-images.githubusercontent.com/70014062/327930049-807386cc-3f8a-4606-ad7d-6433ccdf08a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MTAxMjMsIm5iZiI6MTcxOTkwOTgyMywicGF0aCI6Ii83MDAxNDA2Mi8zMjc5MzAwNDktODA3Mzg2Y2MtM2Y4YS00NjA2LWFkN2QtNjQzM2NjZGYwOGE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDA4NDM0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI1Y2FkYWUxNGRkOGI1MWQ3Mzg2OGQxM2RjZjcxZDYzZDU4NDljM2NhYzAzN2Y0OTM0ZDdmZmIwZjNmMTNhNGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zAg1wZgRR3qyPO7qufCYx--OqjnWogAjSfBQOGi8VQc)
Thanks for the help!
The text was updated successfully, but these errors were encountered: