tags:

views:

1349

answers:

6

I have just start using git and i can't get it to remember my passphrase I'm using cmd.exe elevated and my git host is github and i have create a ssh key like that guide on github

but i still get

*\subnus.mvc>git push origin master
Enter passphrase for key '/c/Users/Subnus/.ssh/id_rsa':
+3  A: 

If you set a password for your key file, you'll always need to type in that password when connecting. If you create a passwordless key, then you won't have to type it every time, however, anyone with access to your key file can now connect to your github account.

ssh-agent may also work. Try running that and see if it will remember your passphrase.

Grant Limberg
+7  A: 

That's not git, it's ssh.

I don't do windows, but ssh has an agent concept that can remember passphrases for you. OS X has this enabled by default. Your ssh client probably has a way to configure this.

Dustin
A: 

I'm usign msysgit if anyone know how to do it in msysgit i thing it use bash

Subnus
What people need to know is what ssh implementation you are using. Can you please edit your post to reflect that it's an ssh issue, not a git issue?
skiphoppy
Never mind; there are likely to be a lot of other people who think this is a git issue. This is the right title. :) But it still has nothing to do with bash.
skiphoppy
+1  A: 

I haven't used msysgit myself, but the pageant authentication agent may be helpful.

Cebjyre
+1  A: 

For anybody needing more detailed instructions, see this page: http://help.github.com/working-with-key-passphrases/

Franz
A: 

i solved this problem by adding my ssh public key to authorised keys for the git user on the source machine:

cat .ssh/id_rsa.pub | ssh git@GIT_MASTER_IP 'cat >> .ssh/authorized_keys'
hwjp