12

I'm new to using git. Each time I want to push my file to github, it's always show me notification to enter my passphrase. Ex: Enter passphrase for key '/c/Users/.ssh/id_rsa':

I want my git remember the passphrase for me. How should I possibly do that on windows 7? I've already read the help page here http://help.github.com/ssh-key-passphrases/. It seems only available for Mac / Linux.

Thanks for helping.

coffee-grinder
  • 26,200
  • 19
  • 54
  • 81
  • What are you using for SSH? If Putty, it includes pageant, which you can use as a key agent in windows. Then you would need to set up the GIT_SSH environment variable. – Pablo Maurin Dec 15 '11 at 10:31
  • Possible duplicate of [Remember Password, Git bash under windows](http://stackoverflow.com/questions/5727555/remember-password-git-bash-under-windows) – Michael Freidgeim Nov 19 '16 at 05:09

2 Answers2

13

I believe if you use msysgit then you can install (or maybe it comes already installed) openssh.

With openssh you can use the command line program ssh-add to add you key once and remember it:

ssh-add /c/Users/.ssh/id_rsa
holygeek
  • 14,885
  • 1
  • 39
  • 47
0

One of these questions surely contains valid answers: How to push with git to github on Windows?

How do I store a password for my key so I can commit and pull from repository when using git on windows?

Or you could use putty like they do in this answer

Community
  • 1
  • 1
jpjacobs
  • 9,180
  • 33
  • 41