Cygwin is an excellent Unix emulating environment in Windows.
Run ssh-agent under Windows
However, ssh-agent doesn’t naturally run in Cygwin shell. Here are some treaks to get it work.
Add these lines to file $HOME/.bashrc:
Add an environmental variable “SSH_AUTH_LOCK”, and set its value to “/tmp/.ssh-socket”: Click ‘Start’ –> ‘My Computer’ –> Right click –> ‘Properties’ –> ‘Advanced’ –> ‘Environmental Variables’ –> ‘New’.
To use ‘ssh-agent’, open a Cygwin session, and run
To kill this process, run “‘kill-agent’” in Cygwin shell.
Open Cygwin terminal here with right click
It is quite handy if adding Cygwin terminal to the right click menu. Here is how.
1.Install ‘chere’ package in Cygwin by running its “setup.exe”.
2.Open a Cygwin terminal as the Administrator(right click, and “run as Administrator”), and type
to install chere to the right-click menu.
Now right click on any folder and there will be “Bash prompt here”. (Note that right click on an empty space will not give “Bash prompt here”.)
Built with Jekyll and Lagom // Disclaimer: pages on domain lij.uno do not represent the views of Lijun's employees