SSH 代理转发不起作用



我尝试使用" ssh -a root@myHost"来连接远程服务器,通过agent expryed;

尽管我成功连接到远程服务器;但是当我拉Github的代码,它向我显示一个错误:

Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

那么如何解决此问题?我可以用自己的PC提取代码;我确定我有权拉代码

githib没有对您进行认证

您可以关注此https://help.github.com/articles/generating-an-ssh-key/以及此或https://help.github.com/articles/articles/error-perrise-permision-denied-publickey/-。

您可以更喜欢HTTPS URL而不是SSH/git,以避免SSH错误。https://help.github.com/articles/set-up-git/

最新更新