caarlos0
caarlos0

Reputation: 20633

Can't clone/push via SSH

Example:

$ git clone git@gitlab:carlos/test.git
Cloning into 'asd'...
ssh: connect to host gitlab port 22: No route to host
fatal: Could not read from remote repository.

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

I added the IP and name to my hosts, but even if I use the IP directly, the error occurs. I can login via SSH using root, it just doesn't work for git user.

I don't have idea of what is going on here.

Thanks

Upvotes: 1

Views: 1556

Answers (1)

axil
axil

Reputation: 797

Have you configured gitlab-shell correctly?

cd /home/git/gitlab-shell
./bin/check

If the API access fails there's something wrong with your configuration.

Upvotes: 1

Related Questions