gpt4 book ai didi

git - ssh : connect to host gitlab. com 端口 22:连接超时

转载 作者:行者123 更新时间:2023-12-05 06:40:24 26 4
gpt4 key购买 nike

我正在尝试将我的本地文件推送到远程来源,但收到此错误消息。我不知道如何解决这个问题,请帮忙!

$ git push -u origin --all
ssh: connect to host gitlab.com port 22: Connection timed out
fatal: Could not read from remote repository.

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

最佳答案

  1. 检查 https://status.gitlab.com/ Git 操作状态

  2. 如果 GitLab 已启动,请直接检查 SSH 连接:

    ssh -vvv git@gitlab.com

    (你可以用自己在 gitlab.com 注册的 SSH key 来测试)

    此处的调试输出将帮助您诊断 SSH 或网络问题

  3. 如果没问题,请检查您的 git 客户端的版本是最新的,最新的,或者至少是 version built and included by GitLab/Gitaly (当我写这个答案时是 git v2.35.1)。

关于git - ssh : connect to host gitlab. com 端口 22:连接超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42765019/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com