在配置gitLab和gitHub同时使用时,配置了config文件以后,发现还是无法访问github还是有permit denied问题,这说明配置文件并没有被github查阅到
方法如下
执行$ ssh-add ~/.ssh/(你使用的github公钥的文件名) 就可以使用了
(附上链接http://stackoverflow.com/questions/3225862/multiple-github-accounts-ssh-config)
如果使用ssh-add时出现Could not open a connection to your authentication agen 错误
执行$ eval $(ssh-agent)
(附上链接http://stackoverflow.com/questions/17846529/could-not-open-a-connection-to-your-authentication-agent/17695338#17695338)
以上