Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github 无法在ubuntu上打开与身份验证代理ssh的连接_Github - Fatal编程技术网

Github 无法在ubuntu上打开与身份验证代理ssh的连接

Github 无法在ubuntu上打开与身份验证代理ssh的连接,github,Github,我花了很多时间来解决这个问题,但仍然 我的ssh正在运行 wahyono17@komputer2:~$ ps -e |grep [s]sh-agent 2311 ? 00:00:00 ssh-agent 2343 ? 00:00:00 ssh-agent 但当我添加ssh时,出现了错误 wahyono17@komputer2:~$ sudo ssh-add ~/.ssh/id_rsa Could not open a connection to your aut

我花了很多时间来解决这个问题,但仍然 我的ssh正在运行

wahyono17@komputer2:~$ ps -e |grep [s]sh-agent
 2311 ?        00:00:00 ssh-agent
 2343 ?        00:00:00 ssh-agent
但当我添加ssh时,出现了错误

wahyono17@komputer2:~$ sudo ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
wahyono17@komputer2:~$ sudo ssh-add -L
Could not open a connection to your authentication agent
wahyono17@komputer2:~$ sudo ssh -T git@github.com
Permission denied (publickey)
当我尝试下一步时,出现了错误

wahyono17@komputer2:~$ sudo ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
wahyono17@komputer2:~$ sudo ssh-add -L
Could not open a connection to your authentication agent
wahyono17@komputer2:~$ sudo ssh -T git@github.com
Permission denied (publickey)
我尝试直接检查github连接,但出现错误

wahyono17@komputer2:~$ sudo ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
wahyono17@komputer2:~$ sudo ssh-add -L
Could not open a connection to your authentication agent
wahyono17@komputer2:~$ sudo ssh -T git@github.com
Permission denied (publickey)
公共已经在github中,我已经将公共密钥保存到github中,但仍然存在错误

wahyono17@komputer2:~$ sudo ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
wahyono17@komputer2:~$ sudo ssh-add -L
Could not open a connection to your authentication agent
wahyono17@komputer2:~$ sudo ssh -T git@github.com
Permission denied (publickey)

感谢您的帮助

您启动ssh代理了吗

eval `ssh-agent -s`
ssh-add

由于id_rsa和id_rsa.pub中的权限文件,如果在centos中尝试,则没有问题