If you use “Git for Windows”
>cd c:\Program Files\Git\etc\ssh\
add to ssh_config following:
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_rsa_test
ps. you need ssh version >= 7.2
(date of release 2016-02-28)
More Related Contents:
- Git: How to solve Permission denied (publickey) error when using Git?
- Git error: “Host Key Verification Failed” when connecting to remote repository
- Jenkins: what is the correct format for private key in Credentials
- Is it possible to create a remote repo on GitHub from the CLI without opening browser?
- Git Remote: Error: fatal: protocol error: bad line length character: Unab
- Specify an SSH key for git push for a given domain
- Configuring Git over SSH to login once
- Git SSH authentication
- Git SSH error: “Connect to host: Bad file number”
- Start ssh-agent on login [closed]
- SSH Key – Still asking for password and passphrase
- Git’s famous “ERROR: Permission to .git denied to user”
- Repository access denied. access via a deployment key is read-only
- Git fetch/pull/clone hangs on receiving objects
- Passing ssh options to git clone
- IntelliJ: Viewing diff of all changed files between local and a git commit/branch
- Clone works, remote push doesn’t. Remote repository over copssh
- Could not open a connection to your authentication agent
- How do I get git to default to ssh and not https for new repositories
- Using git with ssh-agent on Windows
- Why are connections to GitHub over SSH throwing an error “Warning: Remote Host Identification Has Changed”?
- “Cannot spawn ssh” when connecting to Github, but ssh -T [email protected] works?
- Github (SSH) via public WIFI, port 22 blocked
- Checkout Jenkins Pipeline Git SCM with credentials?
- Using IntelliJ to amend git commit message
- GnuTLS recv error (-110): The TLS connection was non-properly terminated
- BitBucket: Host key verification failed
- SSH Agent Forwarding with Ansible
- git clone with HTTPS or SSH remote?
- Jenkins: Failed to connect to repository