【问题标题】:Github ssh -T git@github.com and git functions are not working, hangingGithub ssh -T git@github.com 和 git 功能不工作,挂了
【发布时间】:2022-01-03 16:26:43
【问题描述】:

我正在使用 manjaro linux。我之前设法设置了 ssh 密钥,但是在我重新安装操作系统后,我在使用 github ssh 文档完成所有操作后失败了。我的 github 命令一直在等待并生成此错误:ssh: connect to host github.com port 22: Connection timed out, Example;

[maviay@manjaro ~]$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out

【问题讨论】:

  • 我已经完成了this 并且它有效。对不起

标签: github ssh ssh-keys


【解决方案1】:

虽然防火墙问题可能是端口 22 被阻止的常见原因,但请检查此线程是否存在 wifi chipset driver 问题。

上述问题不会影响 HTTPS (443),这就是您的 workaround 正常工作的原因:

# ~/.ssh/config
Host github.com
 Hostname ssh.github.com
 Port 443

【讨论】:

    猜你喜欢
    • 2021-04-26
    • 2019-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-30
    • 1970-01-01
    • 2015-11-16
    • 2014-01-02
    相关资源
    最近更新 更多