0

Created key for authorization: ssh-keygen -C “your@email.com” -t dsa. Public key sent to git administrator. Setup passphrase caching by configuring ssh-agent for Windows. The process is described at http://help.github.com/ssh-key-passphrases/ Created .bash_profile. Now if I work in console it asks only once for passphrase and I can clone/pull/fetch/push to our server without entering it till computer restart, after that need to enter passphrase again.

However if I do operations in TortoiseGit it always asks for passphrase and does not store it. TortoiseGit → Settings → Git → Credential. Select Credential helper: is set to "wincred - current Windows user". Used same ssh.exe as in console: Settings->Network->SSH Client. Suggestions like importing PuttyKeys do not work:

  1. TortoiseGit still asks for passphrase
  2. "Load Putty Key" check box is disabled for me when cloning.
  3. Pageant does not help as well and our git server uses only OpenSSH.

Is there a way to force TortoiseGit to remember passphrase?

Version information:

TortoiseGit 1.8.16.0 (C:\Program Files\TortoiseGit\bin) 
1.9.5.msysgit.0 or Git 2.7.1
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101

1 Answers1

3

That OpenSSH is used on server side does not affect the client side.

Recommended usage for your scenario is to use tortoisegitplink as SSH client and PuTTY agent (pageant) for caching the password of the SSH key OR to use a SSH key w/o passphrase. If you really want to use openssh as SSH client, you might be interested in https://stackoverflow.com/a/14913230/3906760 for configuring openssh agent.

Btw.

  • the "Load Putty Key" check box is only enabled if tortoisegitplink is used as SSH client.
  • the credential helper only affects http and https transports and not SSH.
Community
  • 1
  • 1
MrTux
  • 32,350
  • 30
  • 109
  • 146