VS Code gives me an ssh_askpass error when I try to push the changes to my Github repository using the integrated git

Gabe

I have this problem, I've created a Github repository to back up a project. I have normal SSH access to my repo from my Linux command line and I can push, pull, commit, sync and all that stuff with no problem. But when I try to use the VS Code github integration tool to push my changes it gives me this error:

Git: ssh_askpass: exec(usr/lib/ssh/ssh_askpass): No such file or directory.

I've looked for this file on the mentioned directory but all I've seen was a file named gassh_askpass.

I'm currently using Manjaro and VS Code 1.28.2

VonC

If depends also on your OS.

For instance, Microsoft/vscode/issue 32097 illustrates various MacOS workarounds::

In my case, it's caused by updating of mac OS, makes git lose passphrase of my ssh key.
After ssh-add ~/.ssh/id_rsa, and REINSTALL vscode, this problem is fixed.

Or:

$ brew tap theseal/ssh-askpass
$ brew install ssh-askpass
$ sudo ln -s /usr/local/bin/ssh-askpass /usr/X11R6/bin/ssh-askpass

Or:

  • Download xQuartz latest version : https://www.xquartz.org
  • update and upgrade home-brew via 'brew update && brew upgrade'
  • link: $ sudo ln -s /usr/local/bin/ssh-askpass /usr/X11R6/bin/ssh-askpass as @stargriv described above :-)
  • Start VSCode, should work now
  • You still have to type in your password every time when you connect to the server; if you don't want that, create a ssh-key file.

The OP Prabesh Bhattarai references "'ssh_askpass exec(/usr/libexec/openssh/ssh-askpass) no such file or directory' error when I try to push in Git repo using VS Code"

If you use services like SSH keys, make sure you don't disable SSH Key Agent. It was a stupid mistake

If the SSH-agent is disabled, it cannot register the passphrase indeed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

"ssh_askpass exec(/usr/libexec/openssh/ssh-askpass) no such file or directory" error when I try to push in Git repo using VS Code

When I attempting to add my code to repository on GitHub I'm getting error like this "Failed to push to the remote repositor..."

Initialize a bare repository but when I try to push I get does not appear to be a git reposity error

Upgrading Oh My Zsh gives me 'not a git repository' error

How can I push changes to a private repository using github actions

SourceTree gives me a login Error when I try to add my gitlab account

How to setup inertia on my project, gives me an error when I try and load the login page

Aptana Studio freezes when I try to do a push to my repository

When I try to create a table in MySQL, it gives me error code 1215: “Cannot add foreign key constraint”

How can I push my code to a new repository on Github in Intellij?

Google Apps Script gives error "Something Went Wrong" when I try to authorize my own code

First project in Django gives me an error when I try to start it

SQL or mariadb gives me this error when I try to create a table

Git push my branch changes to another repository

git is prompting me for someone elses password when I try to push

My discord bot gives an error when I try send a message

How to push code to root of git repository (GitHub)

how to git push code to remote repository when repository changes are not in your local machine

why does npm gives me warning when i try to install jquery-csv library using VS in ubuntu

when i try to migrate my profile table its giving me the error .i am using laravel 5.1

Git configuration repository, I push the changes in my new account it updates, but under the name of my old account

my code gives me a tuple error and i dont know why

Microsoft VS Code: When I try to launch my program error "spawn php ENOENT" shows up

I can authenticate to Github using SSH but I get a permission denied when trying to push to my repo

unable to push changes to github using git

Git tries to use global user when I try to push with ssh

Why it gives me "segmentation fault" error when I change this code?

Errors when I try to build my Java project in VS Code

Attribute error occurs when I run my GUI code in Python. Python gives me no information as to what the error is or what is causing it