Ksshaskpass is not installed as recommended

Hi everyone,

I had a weird issue where git would not connect to ssh for the love of god. It turned out to be because it probably used ssh-add which in turn could not find ssh-askpass. I then figured that Manjaro comes with ksshaskpass instead, which in its manpage says:

In order to be called automatically by ssh-add, ksshaskpass should be installed as /usr/bin/ssh-askpass.

I found this topic where someone suggested to add a symlink, it was closed with no response after 6 months but the symlink still does not exist, so I would like to suggest that again: VSCode && Git: ssh_askpass: exec(/usr/lib/ssh/ssh-askpass): No such file or directory

Cheers.

… is a package we directly import unmodified from Arch in its binary form. I would therefore suggest filing a bug report or feature request with the Arch developers.

Caution: Do not tell them you are using Manjaro, because then they’ll probably just ignore you.

1 Like

I would argue a more proper approach, that does not apply simply to vscode, but also to a general ‘have kwallet store git ssh and git credentials’ would be to set the environment variables

GIT_ASKPASS=/usr/bin/ksshaskpass
SSH_ASKPASS=/usr/bin/ksshaskpass
SSH_ASKPASS_REQUIRE=prefer

And not fiddle with a symlink.

As for vscode the wiki seems to indicate the following may also be needed;
~/.config/Code - OSS/User/settings.json

{
    "git.useIntegratedAskPass": false
}

That said, I’m not entirely sure that any of these things should be done by distro.

3 Likes

Indeed. For reference and more info, see Using the KDE Wallet to store ssh key passphrases

1 Like

They’d probably request logs until I make a mistake and they figure out I use Manjaro so they can close the topic unanswered.

I’d also expect them to argue that things like this are tasks for the packager or that the KDE team are morons or something like that, as in the Arch wiki, which @Yochanan linked (thanks!), they suggest using env variables.

For now I just set the symlink myself and for reference, in case someone stumbles across this topic, this is how

sudo ln /usr/bin/ksshaskpass /usr/lib/ssh/ssh-askpass
1 Like

Surely not! :scream_cat: