TvdH
TvdH

Reputation: 1218

Cannot store password using Git with Visual Studio 2017

We are using the Git client build into Visual Studio 2017 (no TFS involved) to connect to a SSH secured repository. Almost everything is fine, but we cannot store the repository password.

I also installed Git Extensions locally. The password will be stored there via Credential Manager with no problems. It looks like VS is using the Git (or Git Extensions) dialog for login. Shouldn't the password store in VS work then?

Update: Git Extension and bash produce errors - the password is not stored. (Not sure if this is new behavior.)

Upvotes: 2

Views: 1274

Answers (2)

Alexan
Alexan

Reputation: 8637

First you need to generate SSH key on command prompt or Git Bash:

ssh-keygen -t rsa -C "[email protected]"

See GitHub and BitBusket tutorials.

Then you should upload key to your profile on the server.

How to do this depends on the server type.

Upvotes: 1

jamill
jamill

Reputation: 1732

Do you get prompted for a password when you perform network operations from the command line (e.g. fetch, push, pull)?Did you set up your SSH keys so you don't need a passphrase? The password for HTTP(s) connections are stored via the credential manager, but I don't think passphrases for SSH are.

Upvotes: 0

Related Questions