Details
-
Suggestion
-
Resolution: Fixed
Description
In your help at https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html (Bitbucket-cloud, Setup SSH for Git), you suggest that if ssh-agent is not running one should start it with: "ssh-agent /bin/bash", and "ssh-add ~/.ssh/id_rsa". This starts a new shell which is somewhat unsatisfactory. A better way to start it is with:
eval $(ssh-agent) > /dev/null
ssh-add ~/.ssh/id_rsa
These lines modify the current shell instead of starting a new shell, and after this one can use git clone/push/pull happily and passwordlessly http://blog.joncairns.com/2013/12/understanding-ssh-agent-and-ssh-add/