-1

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.

My branch is master and remote is origin

Hyyan Abo Fakher
  • 3,497
  • 3
  • 21
  • 35
  • Have you added your **PUBLIC SSH key** to your repository **SSH keys** list? – Ali Tavafi Aug 29 '18 at 09:40
  • 1
    Possible duplicate of [git: fatal: Could not read from remote repository](https://stackoverflow.com/questions/13509293/git-fatal-could-not-read-from-remote-repository) – Ali Tavafi Aug 29 '18 at 09:46

1 Answers1

0

Seems like you cannot connect to the remote host via SSH while trying to push your changes over 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

Notice: I assumed, that you're using self-hosted GitLab installation

Yurii Rochniak
  • 304
  • 2
  • 5