Skip to content

Instantly share code, notes, and snippets.

@MadLittleMods
Last active October 12, 2015 00:07
Show Gist options
  • Select an option

  • Save MadLittleMods/c9465a4db27b4ffd5d6e to your computer and use it in GitHub Desktop.

Select an option

Save MadLittleMods/c9465a4db27b4ffd5d6e to your computer and use it in GitHub Desktop.

I noticed that I could no longer use SSH to git clone, push, etc in the Windows CMD prompt.

git clone no longer working with SSH

You may be getting these errors:

  • Error connecting to agent: No such file or directory
  • permission denied (publickey)

It turns out that setting a HOME environment variable will mess up the OpenSSH commands; probably because it can't find the .ssh directory(C:\Users\my_user\.ssh).

The solution is just to remove the HOME environment variable.

The reason I had this set in the first place, was that I was playing around with nvm and the nvm command will complain about no HOME being set when it tries to download builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment