gitlab ssh access connection refused

The gitlab shell, which is invoked by your SSH login, needs to make a call to the API of the gitlab web application to determine if you're authorized to push. However, it can't connect to it. Run the appropriate rake task for your version of gitlab to check the configuration of all the gitlab components and fix any errors it finds.


A 'Connection Refused' message generally means that there is no process listening on the IP:Port combination you are trying to connect to.

  • Confirm the ports that you are using.
  • Use netstat to check that processes are listening on the relevant IP:ports.
  • Check that you are not blocking the ports at your firewall.