Permission problem on submodules


I have a project with a submodule.

    - git submodule update --init --recursive

There is no problem cloning the main git repository, but when I try to get the submodules I get a permission problem.

$ git submodule update --init --recursive
Submodule 'lib/urlgrabber' ( registered for path 'lib/urlgrabber'
Cloning into 'lib/urlgrabber'...
Host key verification failed.
fatal: Could not read from remote repository.

Project visibility is set to public for both repositories.
What have I missed to check?


Found the solution here:
Gitlab has support for this, using HTTPS, thus I had to change the paths in .gitmodules to relative

[submodule "lib/urlgrabber"]
        path = lib/urlgrabber
-       url =
+       url = ../../linux/urlgrabber.git