[英]git clone with ssh hangs indefinitely with Fedora 29
我正在运行Fedora 29,并将.ssh密钥正确添加到GitHub。 我知道Fedora默认运行防火墙,我试图通过在/etc/sysconfig/selinux
设置SELINUX=disabled
来禁用它。
在添加了密钥并配置了防火墙设置之后,应该很容易进行克隆,对吗? 在异常长的时间后,该过程将中断,并显示以下输出:
[aaron@localhost repos]# git clone git@github.com:org/repo.git
Cloning into 'repo'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Connection to github.com closed by remote host.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
组织和存储库都存在,我正在其他计算机上以完全相同的方式访问它们。 实际上,有一段时间,即使命令行不起作用,我仍然能够在我的机器上成功使用GitKraken从该存储库读取和写入,这很奇怪。 此hack也不再起作用。
我试图用详细的输出进行调试,但是它只是挂在这里:
[aaron@localhost repos]$ git clone --progress --verbose git@github.com:org/repo.git
Cloning into 'repo'...
我检查了这篇文章 ,建议的解决方案是使用http:/我有2FA,所以无法使用。
有任何想法吗?
更新
根据@torek的建议,我运行ssh -vT git@github.com
来尝试弄清该过程在哪里中断。 这是输出。 看来对GitHub的身份验证已成功,并且我能够对交互式会话进行身份验证,但是该过程挂起了:
...
debug1: Offering public key: /home/aaron/.ssh/id_rsa RSA SHA256:Gam7duBv/+8VMiJH1iEYrPX5UojI09D9nlRiXpNdyjg agent
debug1: Server accepts key: /home/aaron/.ssh/id_rsa RSA SHA256:Gam7duBv/+8VMiJH1iEYrPX5UojI09D9nlRiXpNdyjg agent
debug1: Authentication succeeded (publickey).
Authenticated to github.com ([192.30.253.113]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending env XMODIFIERS = @im=ibus
debug1: channel 0: free: client-session, nchannels 1
Connection to github.com closed by remote host.
Transferred: sent 3508, received 2312 bytes, in 600.1 seconds
Bytes per second: sent 5.8, received 3.9
debug1: Exit status -1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.