Skip to content

Instantly share code, notes, and snippets.

@tuphamphuong
Created October 22, 2016 07:50
Show Gist options
  • Save tuphamphuong/dc7239c3af51c3002d63d4824a85c789 to your computer and use it in GitHub Desktop.
Save tuphamphuong/dc7239c3af51c3002d63d4824a85c789 to your computer and use it in GitHub Desktop.
Fix bug ssh agent stop
$ git fetch
Connection to bitbucket.org closed by remote host.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
$ ssh-add -l
The agent has no identities.
$ ssh-add ~/.ssh/id_rsa
Identity added: /root/.ssh/id_rsa (/root/.ssh/id_rsa)
$ ssh-add -l
2048 SHA256:xxx /root/.ssh/id_rsa (RSA)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment