Automatically starting ssh-agent on login to bash shell can be done by adding the following script to “.bash_profile” file in a users home directly. This should work on linux and cygwin. This script was adapted from the stack overflow post start-ssh-agent-on-login.

add this code to '.bash_profile'
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
echo "Manage keys as follows..."
echo "ssh-add <identity file> Add identity file."
echo "ssh-add -L List the keys currently."
echo "ssh-add -D Delete the keys."
# Source SSH settings, if applicable
if [ -f "${SSH_ENV}" ]; then
. "${SSH_ENV}" > /dev/null
#ps ${SSH_AGENT_PID} doesn't work under cywgin
ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {

Copy Folder Recursively in Google Drive

[The Copy Folder Chrome plugin tool from the Chrome Web Store](… Continue reading

Drive a Successful Open Source Project

Published on October 05, 2016

Los Angeles Devops September 2016

Published on October 03, 2016