SSH-Add / Agent on Windows / FreeBSD

Though most likely a configuration issue, I keep running into an issue
running Git over ssh on Windows and FreeBSD. It seems the ssh-agent is not
always running, and when it does, it has issues setting Environment Variables correctly.

The only difference on FreeBSD is you run setenv not set
(and no = between variable and value):

C:\Users\Administrator\flask>ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-bTTsz23948/agent.23948; export SSH_AUTH_SOCK;
SSH_AGENT_PID=24100; export SSH_AGENT_PID;
echo Agent pid 24100;

C:\Users\Administrator\flask>set SSH_AUTH_SOCK=/tmp/ssh-bTTsz23948/agent.23948

C:\Users\Administrator\flask>ssh-add ../id_github
Enter passphrase for ../id_github:
Identity added: ../id_github (../id_github)

C:\Users\Administrator\flask>git clone ssh://git@github.com/colinstgeorge/supersecretrepo.git

Leave a Reply

Your email address will not be published. Required fields are marked *