gitui icon indicating copy to clipboard operation
gitui copied to clipboard

error authenticating: no auth sock variable; class=ssh

Open saber716rus opened this issue 3 years ago • 11 comments

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:

  1. Press "p"
  2. 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. Screenshot_2022-11-28-22-06-37-465_com.termux.jpg

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.

saber716rus avatar Nov 28 '22 19:11 saber716rus

I have no password for my ssh key, but I get the exact same error .

lilymonad avatar Dec 09 '22 10:12 lilymonad

I have no password for my ssh key, but I get the exact same error .

what linux distribution do you have?

saber716rus avatar Dec 09 '22 23:12 saber716rus

same issue here with debian. Version 0.22.1

Randalix avatar Dec 16 '22 11:12 Randalix

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

saber716rus avatar Dec 16 '22 14:12 saber716rus

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

ehaynes99 avatar Dec 25 '22 03:12 ehaynes99

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.

yhutter avatar Jan 04 '23 07:01 yhutter

I'm getting the same error on void linux; my ssh file is not password protected, and I ran the above ssh-agent commands.

danjenson avatar Mar 16 '23 18:03 danjenson

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".

buddhiko1 avatar Apr 06 '23 07:04 buddhiko1

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?

tanmaychimurkar avatar May 24 '23 07:05 tanmaychimurkar

Also, @buddhiko1 will the steps that you mentioned also work for bash or only for fish shell?

Only for fish shell.

buddhiko1 avatar Jun 06 '23 01:06 buddhiko1

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.

stale[bot] avatar Dec 15 '23 06:12 stale[bot]