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
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
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