Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh-agent and windows 7 #3

Closed
albertosantini opened this issue Jul 11, 2013 · 2 comments
Assignees

Comments

@albertosantini
Copy link

@albertosantini albertosantini commented Jul 11, 2013

I configured the git bash shell on windows 7 following GitHub help to start a ssh agent, because I don't want to type every time the passphrase for my ssh key.

I added to that configuration, in .bashrc, the following lines:

setx SSH_AUTH_SOCK $SSH_AUTH_SOCK 1> nul
setx SSH_AGENT_PID $SSH_AGENT_PID 1> nul

These lines add the environment variables to windows user profile.

So the git executable, configured in SublimeGit, can read the variables and use the correct protocol.

Firstly I start the bash shell and then I start SublimeText editor.

Now SublimeGit works perfectly.

You may add a quick note for windows users using ssh passphrase.

SublimeGit may start a ssh agent, if it is not running, and set the ssh variables.
It may be a nice and feasible solution.

@miped

This comment has been minimized.

Copy link
Contributor

@miped miped commented Jul 13, 2013

I will look into this. It might be possible to add some settings to sublimegit which can handle this, but it might also be too specific a situation or outside the scope of what SublimeGit does (i.e. managing ssh-agent etc.).

In any case, i'll be sure to at your method to the documentation.

@ghost ghost assigned miped Jul 13, 2013
@miped

This comment has been minimized.

Copy link
Contributor

@miped miped commented Sep 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.