error authenticating: no auth sock variable; class=ssh
Describe the bug I have a password-protected ssh key, and the connection is over ssh. When I try to send to the server, an error message appears
To Reproduce Steps to reproduce the behavior:
- Press "p"
- I see error: ┃push failed: ┃ ┃git error:error authenticating: no auth sock variable; class=Ssh ┃ ┃(23)
Expected behavior After clicking on "p". If the ssh key has a password, a password entry window appears, and with the correct password it is sent to the git server.
Screenshots
If applicable, add screenshots to help explain your problem.

Context (please complete the following information):
- ROSA Fresh rootfs 12.3
- rust-1.63.0-1.aarch64
- gitui-0.22.1-1.aarch64
Additional context The program is running, development branches are being created, but apparently the program does not know how to work with password-protected ssh keys.
I have no password for my ssh key, but I get the exact same error .
I have no password for my ssh key, but I get the exact same error .
what linux distribution do you have?
same issue here with debian. Version 0.22.1
most likely the problem is not unique, but I can't figure out what the reason is. I tried to debug, but I think that the program cannot work with SSH keys, since it issues an error with a password-less ssh key.14:59, 16 декабря 2022 г., Randalix @.***>: same issue here with debian. Version 0.22.1
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***> С Уважением, Николай.Специалист IT-систем.+79625490833 (whatsapp)telegram: https://t.me/Saber716RUSinstagram: @saber716russkype: nicksab1491
This seem to solve it for me:
https://sathia27.github.io/posts/2021/08/19/rust-cargo-resolve-authentication-issue.html
➜ eval `ssh-agent -s`
Agent pid 27236
➜ ssh-add
Identity added: /Users/sathia/.ssh/id_rsa
➜ uzhaippu git:(master) ✗ cargo build
While this is the arch wiki, it should be pretty universal, particularly the .bashrc option in 4.1, but 4.1.1 should be ok for any distro using systemd
https://wiki.archlinux.org/title/SSH_keys#SSH_agents
For anyone having this problem I was able to resolve it with the following steps
Step 1 Create an SSH Key and add it to Github
Follow the steps according to this guide.
Step 2 Create an SSH Config File
Follow the steps described in this comment here. Only do the make config and write config part.
Step 3 Clone your Repo with SSH
After cloning your repo with SSH make sure to run the commands described above meaning a eval and ssh-add commands.
I do not know if all of these steps are necessary but this is the way I got it working for myself.
I'm getting the same error on void linux; my ssh file is not password protected, and I ran the above ssh-agent commands.
If you are a user of fish shell, look here.
1, Generate ssh key with ssh-keygen -t ed25519 -C "[email protected]" and add it to github.
2, Install this plugin manually: https://github.com/danhper/fish-ssh-agent.
3, Add this function to the ".config/fish/conf.d/alias.fish".
function gui --description 'gitui'
ssh-add ~/.ssh/id_ed25519 && gitui
end
4, Reboot.
5, You can use gitui happily with the alias "gui".
I have the same error, also tried the steps mentioned by @Yannick93qw. It worked for a day with the ssh-add steps but stopped working with the same error a day after.
Also, @buddhiko1 will the steps that you mentioned also work for bash or only for fish shell?
Also, @buddhiko1 will the steps that you mentioned also work for bash or only for fish shell?
Only for fish shell.
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.