https://help.github.com/articles/connecting-to-github-with-ssh/
创建ssh密钥后,从github clone仓库到本地出现permissoin denied(publickey)错误。
参考官方文档(generating-ssh-keys)的方法来添加ssh密钥到ssh-agent:
需要在连接到ssh-agent前,执行:
ssh-agent bash
连接到ssh-agent:
ssh-agent -s
添加私钥:
ssh-add ~/.ssh/id_rsa
这样就能成功的clone了
git clone git@github.com:dnawym/Concurrency.git