Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code incessantly invokes an OpenSSH dialog #7821

Closed
MIchaelMainer opened this issue Jun 17, 2016 · 5 comments
Closed

VS Code incessantly invokes an OpenSSH dialog #7821

MIchaelMainer opened this issue Jun 17, 2016 · 5 comments
Assignees
Labels
git GIT issues

Comments

@MIchaelMainer
Copy link
Member

  • VSCode Version:1.0.0
  • OS Version: 10.0.10586

I'm using the git bash terminal on Windows 10 to work with repos. When I use a repo where I used SSH to connect to the remote repo, I get an OpenSSH dialog that requests my passphrase with 'Enter passphrase for key /c/..id_rsa'. The dialog gives me an OK and Cancel button. I press either one, the dialog goes away. It seems to pop up about every 5 to 10 minutes or so. It is driving me nuts.

Steps to Reproduce:

  1. Clone a repo in the git bash shell using SSH.
  2. From the terminal, open the current repo directory with code . &
  3. Within a few seconds, the OpenSSH dialog opens up.
  4. I can press OK or Cancel, the dialog goes away. It will pop up again.
@OneOfOne
Copy link

Not really a solution, but "git.autofetch": false in your settings.json might help.

@MIchaelMainer
Copy link
Member Author

@OneOfOne Thank you! That removed the annoying dialog prompt scenario.

@dbaeumer dbaeumer added git GIT issues bug Issue identified by VS Code Team member as probable bug labels Jun 20, 2016
@joaomoreno
Copy link
Member

Disabling auto fetch or setting up a credential manager solves it.

@MIchaelMainer
Copy link
Member Author

Thank you @joaomoreno ... As of today, disabling auto fetch appears to be the only option when using SSH.
microsoft/Git-Credential-Manager-for-Windows#25

@isidorn isidorn removed the bug Issue identified by VS Code Team member as probable bug label Jul 1, 2016
@danwulff
Copy link

I know this was closed awhile ago, but I thought I'd chime in that this same thing was occurring for me.

Following the top answer here worked for me: http://stackoverflow.com/questions/10032461/git-keeps-asking-me-for-my-ssh-key-passphrase

In git bash:

eval $(ssh-agent)
ssh-add

VSCode: 1.12.1
Win 10 Pro: 14393.1198

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
git GIT issues
Projects
None yet
Development

No branches or pull requests

6 participants