zsh-quickstart-kit: load-our-ssh-keys() function doesn't work on Arch Linux

I am not sure if this is Arch specific but my ssh key is never loaded during the start-up of a new shell/terminal.

I see output like this:

-- console output produced during zsh initialization follows --

load-our-ssh-keys:6: no such file or directory: .ssh/ssh-agent
cat: .ssh/ssh-agent: No such file or directory
Could not open a connection to your authentication agent.

Current SSH Keys:
Could not open a connection to your authentication agent.

I have tried debugging and because the kit redirects the ssh-add cmd to /dev/null I never see the actual error message:

-- console output produced during zsh initialization follows --

Agent pid 40928
ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory```

If I add the ssh-add command to my config in the ~/.zshrc.d/ folder it gives the same askpass error as above. From reading up on this on a few SO pages its to do with the env var SSH_ASKPASS

I have installed this package but it still fails: community/openssh-askpass 2.1.0-3 [0B 2.61MiB] [Installed]

I found this link on StackExchange, it may be helpful.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (16 by maintainers)

Commits related to this issue

Most upvoted comments

NP, they needed fixing anyway. I’m pretty busy this weekend but I’ll try to spin up an Arch VM to debug with. What version of Arch are you running?