简体   繁体   English

ssh代理转发不起作用

[英]ssh agent forwarding doesn't work

i tried to use "ssh -A root@myhost" to connect remote server by agent forwarding; 我尝试使用“ ssh -A root @ myhost”通过代理转发连接远程服务器;

Although i successfully connected to my remote server ;but when i pull code from github ,its show me an error : 虽然我已成功连接到远程服务器;但是当我从github提取代码时,它显示了一个错误:

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

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

so how to fix this problem ? 那么如何解决这个问题呢? i can pull code with my own pc ;i am sure that i have permission to pull code 我可以用自己的电脑提取代码;我确定我有权提取代码

Githib is not authenticating you because you either didn't setup correctly or key didn't match Githib. Githib无法验证您的身份,因为您未正确设置或密钥与Githib不匹配。

You can follow this https://help.github.com/articles/generating-an-ssh-key/ and this or https://help.github.com/articles/error-permission-denied-publickey/ . 您可以遵循以下https://help.github.com/articles/generating-an-ssh-key/和this或https://help.github.com/articles/error-permission-denied-publickey/

You can prefer HTTPS URL instead of SSH/git to avoid SSH errors. 您可以选择HTTPS URL而不是SSH / git来避免SSH错误。 https://help.github.com/articles/set-up-git/ https://help.github.com/articles/set-up-git/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM