Skip to content

Instantly share code, notes, and snippets.

@juan-m-medina
Created June 3, 2019 15:59
Show Gist options
  • Save juan-m-medina/d7305baeaa39bc9e9d2d61e6c0d153c6 to your computer and use it in GitHub Desktop.
Save juan-m-medina/d7305baeaa39bc9e9d2d61e6c0d153c6 to your computer and use it in GitHub Desktop.
Git configuration to address ssh-add issues
# The SSH Command is necessary to make sure the ssh-add for the agent uses the same binary as your global SSH.
# In this case OpenSSH was installed and the Windows 10 Agent was uninstalled.
# Prior to this the git client and the ssh-agent were hitting different binaries and the git client kept asking for the passphrase
[user]
name = Juan_M_Medina
email = myemail@emailserver.com
[core]
sshCommand = c:/Program\\ Files/OpenSSH-Win64/ssh.exe
# This is the ~/.ssh/config file
# Replace git with the servername you use
# the MACs option forces specific MAC resolution which was needed in a situation where
# we were getting a "Corrupted MAC on Input" due to the server/client being at different default versions.
Host git.server.com
Hostname git.server.com
MACs hmac-sha1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment