You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a public-private key pair with password protection
add them to your github account
setup git to use the private key file
try to push something with git
Result:
git pull
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Reacted by Martin Zůbek, Lorenzo Setale, Anton, Shaun Luttin, Skip R., Joe, Norbert88, Martin Häusler, Moty Ros, Nicholas Mayne and 289 more
Reacted by Manohar Reddy Poreddy, wscullen, Marc Henry Schultz, Asif Imtiaz Shaafi, Rainer Matthias Lang, Richard, Josh Dix, Chalar, DraftMan, Ryan Thomas Lynch and 1 more
Reacted by Pavel Levchuk, Terry Nguyen, Pavan Agrawal, Silentz0r, Lorin Halpert, Huy Q. Nguyen, Serhii Sovhut, Matthew, Mitch Talmadge, Dominik Grießer and 10 more
Reacted by Javi P, Pavel Levchuk, Terry Nguyen, Pavan Agrawal, Arthur Stankevich, Silentz0r, Will Cassella, rgembalik, Huy Q. Nguyen, Sergio Cerrutti and 23 more
Right. So, we might have to add a git.sshkey setting too, like Tortoise.
Reacted by mi-hol, acrolink, Oleg Nesterov, Loann Neveu, Gean Ribeiro S. Jr, arnow117, Angel Ulises Velasquez Hernandez, Marek Dorda, abaduser, Kamil Dzieniszewski and 11 more
Reacted by chientranse
Reacted by chientranse, Reinaldo Viera, Piotezaza and Ilia Tsvetkov
yo, 6 years later and yet here we are. this should be fixed without ssh-agent. i dont use ssh-agent and i'm happy to input my passphrase everytime (just like i do in the console)
Reacted by Sergio Donati, Matus Svihra, Mavaddat Javid, Mingyu Zhu, feltcute, Dylan Jones, Nicholas Mayne, Khorishko Ilya, Konstantin Gerstendörfer and Mlbiche
I wanted to follow up on this issue and you provide you an update regarding some of the improvements that we have made recently when it comes to better support of SSH keys that use a passphrase.
Before using VS Code, please ensure that you are able to successfully use the SSH key that uses a passphrase from your terminal for various git operations (ex: clone, pull, push). You can use the following steps to test you SSH key, and to troubleshoot any potential problems.
The latest Insiders release of VS Code contains improvements to detect that the SSH key uses a passphrase and displays a quick input widget at the top of the window so that users can enter the passphrase for the SSH key. The passphrase has to be entered every time the SSH key is used for a git operation. You can also configure the authentication agent on your machine using these steps so that you do not have to enter the passphrase every time the SSH key is used.
Please download the latest Insiders release, try out these improvements and let me know if you run into any issues.
⚠️ Please note that we do not yet support SSH keys that use a passphrase and a hardware security key.
Reacted by Yuto Takano, Megan, Johann Christensen, Jeff McCormick, Eason Tang, Mavaddat Javid, Daisuke Yamamura and George Politis
Reacted by Yuto Takano, Tobias Diez, Camille Appert, Jeff McCormick, Daisuke Yamamura and George Politis
I have file a new issue to track the pending work to support SSH keys with a hardware key. I will go ahead and mark this issue as closed so that it gets covered in the current endgame in preparation for the upcoming Stable release. If you run into any issues please file a separate issue. Thank you!
Activity
joaomoreno commentedon Oct 14, 2016
Does it work from the command line? How exactly do you setup git to use the private key file?
lw-schick commentedon Oct 14, 2016
It works from the command line. Actually I setup git via tortoise git - so I guess all is properly done.
lw-schick commentedon Oct 14, 2016
joaomoreno commentedon Oct 14, 2016
How do you launch the command line? Which command line?
lw-schick commentedon Oct 14, 2016
I use git bash (MINGW64) on windows.
joaomoreno commentedon Oct 14, 2016
Right. So, we might have to add a
git.sshkeysetting too, like Tortoise.315 remaining items
albertosantini commentedon Aug 2, 2022
The trick is using SSH-Agent, builtin in Windows, even if I installed Git Bash in Windows.
ssh-addfrom a CMD prompt (don't use Git Bash shell).Done.
4c74356b41 commentedon Aug 16, 2022
yo, 6 years later and yet here we are. this should be fixed without ssh-agent. i dont use ssh-agent and i'm happy to input my passphrase everytime (just like i do in the console)
BitBuf commentedon Aug 22, 2022
I genuinely can't believe this hasn't been fixed yet.
git.sshkeysetting, we need it!serious-angel commentedon Aug 22, 2022
My apologies, but have you considered submitting a pull request with a possible solution, yet?
dominikseger commentedon Aug 23, 2022
Just Microsoft things ...
lszomoru commentedon Sep 22, 2022
I wanted to follow up on this issue and you provide you an update regarding some of the improvements that we have made recently when it comes to better support of SSH keys that use a passphrase.
Before using VS Code, please ensure that you are able to successfully use the SSH key that uses a passphrase from your terminal for various git operations (ex: clone, pull, push). You can use the following steps to test you SSH key, and to troubleshoot any potential problems.
The latest Insiders release of VS Code contains improvements to detect that the SSH key uses a passphrase and displays a quick input widget at the top of the window so that users can enter the passphrase for the SSH key. The passphrase has to be entered every time the SSH key is used for a git operation. You can also configure the authentication agent on your machine using these steps so that you do not have to enter the passphrase every time the SSH key is used.
Please download the latest Insiders release, try out these improvements and let me know if you run into any issues.
lszomoru commentedon Sep 26, 2022
I have file a new issue to track the pending work to support SSH keys with a hardware key. I will go ahead and mark this issue as closed so that it gets covered in the current endgame in preparation for the upcoming Stable release. If you run into any issues please file a separate issue. Thank you!
scruel commentedon Oct 9, 2022
Ladislau Szomoru (@lszomoru) Thanks for your work, just keep waiting for this feature until now!
ZeWaka commentedon Oct 9, 2022
Thanks so much for this!