[英]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.