简体   繁体   English

ssh:连接到主机 gitlab.kpit.com 端口 22:连接被拒绝致命:无法从远程存储库读取

[英]ssh: connect to host gitlab.kpit.com port 22: Connection refused fatal: Could not read from remote repository

While I'm pushing the project from my local box to my repository using git push -u origin master command, it shows the connection refused error.当我使用git push -u origin master命令将项目从我的本地盒子git push -u origin master送到我的存储库时,它显示了连接被拒绝的错误。

My branch is master and remote is origin我的分支master远程origin

Seems like you cannot connect to the remote host via SSH while trying to push your changes over SSH.在尝试通过 SSH 推送更改时,您似乎无法通过 SSH 连接到远程主机。

You can try to add verbosity to the output with:您可以尝试使用以下命令向输出添加详细程度:

GIT_SSH_COMMAND="ssh -vvv" git push -u origin master

and see what happens看看会发生什么

Common issues: - SSH is firewalled to certain IP addresses on the remote host - SSH server is running on non-default port常见问题: - SSH 被防火墙限制到远程主机上的某些 IP 地址 - SSH 服务器在非默认端口上运行

Notice: I assumed, that you're using self-hosted GitLab installation注意:我假设您使用的是自托管 GitLab 安装

暂无
暂无

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

相关问题 ssh:连接到主机 github.com 端口 22:连接超时致命:无法从远程存储库读取 - ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository GitHub 错误 - “ssh:连接到主机 github.com 端口 22:操作超时致命:无法从远程存储库读取。” - GitHub Error - "ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote repository." ssh:连接到主机 gist.github.com 端口 22:操作超时致命:无法从远程存储库读取 - ssh: connect to host gist.github.com port 22: Operation timed out fatal: Could not read from remote repository Github 错误“ssh:连接到主机 github.com 端口 22:资源暂时不可用致命:无法从远程存储库读取。” - Github Error "ssh: connect to host github.com port 22: Resource temporarily unavailable fatal: Could not read from remote repository." Git 问题:“ssh:连接到主机 gitlab 端口 22:连接被拒绝” - Problem with Git: "ssh: connect to host gitlab port 22: connection refused" ssh:连接到主机example.com端口22:连接被拒绝 - ssh: connect to host example.com port 22: Connection refused ssh:连接到主机 gitlab.com 端口 22:连接超时 - ssh: connect to host gitlab.com port 22: Connection timed out ssh:连接到主机 gitlab.com 端口 22:网络不可达 - ssh: connect to host gitlab.com port 22: Network is unreachable ssh:连接到主机heroku端口22:连接被拒绝 - ssh: connect to host heroku port 22: Connection refused 如何解决这个问题? ssh:连接到主机 github.com 端口 22:连接超时致命 - How to solve this? ssh: connect to host github.com port 22: Connection timed out fatal
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM