The main problem is that I never see the hints for entering the SSH-Key, SSH-Agent password or not. Thus, it acts as if I entered the wrong password and by default I do not pretend that I have no keys.
This happens on multiple computers. I installed my ssh keys a while ago, and everything is fine, but every time I will do git push so often (usually after rebooting my computer) and I will be asked about my original git RATHER server password than my ssh key password. Since my source server does not have a password, this does not allow me to format the changes.
Sometimes he decides himself after a restart, sometimes not. Usually I make a lot of swinging guesses, and one of them finishes fixing the problem, but I can’t remember now which ones work and which don’t.
What is the RIGHT way to solve this problem? What is the problem? Is my SSH key locked? Is the windows process not working correctly? Is the Path variable used? I don’t know much about Windows (I usually develop on Linux), so I’m at a loss.
Edit: The first answer mentions ssh-agent. Some googling made me here:
https://help.github.com/articles/working-with-ssh-key-passphrases/#platform-windows
This explains how to configure ssh-agent to start automatically and find out about your keys in windows. (I didn’t even know that you can use bash profiles in windows).
It did not help.
git bash : " :/c/Users/{{ME}}/.ssh/id_rsa" , ( , ).
, ssh , . , : ssh-add -l , .
: GIT_SSH , ssh, , .
: ssh git @git.myhost.com :
$ ssh -v git@git.myhost.lan
OpenSSH_6.6.1, OpenSSL 1.0.1i 6 Aug 2014
debug1: Reading configuration data /c/Users/eschjen/.ssh/config
debug1: /c/Users/eschjen/.ssh/config line 1: Applying options for git.myhost
.lan
debug1: Connecting to git.myhost.lan [10.116.22.40] port 22.
debug1: Connection established.
debug1: identity file /c/Users/eschjen/.ssh/id_rsa type 1
debug1: identity file /c/Users/eschjen/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA ae:81:77:0d:1c:8e:6a:aa:a8:69:36:1b:e4:ca:33:ee
debug1: Host 'git.myhost.lan' is known and matches the RSA host key.
debug1: Found key in /c/Users/eschjen/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mi
c,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /c/Users/eschjen/.ssh/id_rsa
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mi
c,password
debug1: Next authentication method: password
git@git.myhost.lan password:
, ssh, . , ssh-, , ssh-, - , , , . ssh, , .
- , ssh ( , ) ?