如何使用github ssh auth通过openconnect vpn从Github推/拉?

时间:2017-09-04 05:37:41

标签: github ssh openconnect

我在Ubuntu 16.04 LTS中使用openconnect来通过vpn ssh到远程机器上。我尝试使用ssh身份验证向Github推送/从Github推送,但它无法正常工作。当我尝试拉或推时,它会给出错误:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

当我与nomachine联系时,我能够使用Github推/拉没问题。

我尝试使用Google搜索许多不同的内容,并且还没有注意到openconnect或ssh的选项中的任何内容都会有所帮助。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

答案很简单:只需将git url设置为使用https版本而不是ssh。您也可以暂时缓存https的用户名/通行证:https://help.github.com/articles/caching-your-github-password-in-git/