Mohan S
Mohan S

Reputation: 31

ssh: connect to host gitlab.com port 22: Connection timed out

I am trying to push my local files to remote origin getting this error message. I don't know how to resolve this please help!

$ git push -u origin --all
ssh: connect to host gitlab.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Upvotes: 3

Views: 4926

Answers (1)

mike
mike

Reputation: 2106

  1. Check https://status.gitlab.com/ for the status of Git Operations

  2. If GitLab is up, check the SSH connection directly:

    ssh -vvv [email protected]

    (you can test this with your own SSH key registered at gitlab.com)

    The debugging output here will help you in diagnosing SSH or network problems

  3. If this is okay, check that the version of your git client is up-to-date, either the latest, or at least the version built and included by GitLab/Gitaly (git v2.35.1 when I write this answer).

Upvotes: 1

Related Questions