The migration of the ageing Orekit development platform on a new server became urgent. We decided to take advantage of the opportunity to modernize our tools. The first migrated component is the forge. From now on, Redmine is replaced by Gitlab:
You don’t need special access rights. You have to create a SSH key and to record the public part in your profile. After that, the following command should works:
$ git clone git@gitlab.orekit.org:orekit/orekit.git
Cloning into ‘orekit’…
ssh: connect to host gitlab.orekit.org 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.
With you reply, I suspect some security problems on our side. I’ll fix that.
Most probably! I did a test with a new account - without specific access right - from a server outside our local network. Without SSH key, this user can not clone the repository:
user@host$ git clone git@gitlab.orekit.org:orekit/orekit.git
Cloning into 'orekit'...
git@gitlab.orekit.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Once its key SSH copied on Gitlab, the repository was successfully cloned:
We have not managed to clone the repository via SSH, even after adding a publickey to our gitlab account. This is most likely related to our company proxy : we got a timeout, not a “Permission denied (publickey)”.
However, we got it to work via HTTPS after configuring the proxy properly in git. It is still quite unreliable though, probably because of network issues on our side, so we will try to work these out.
In case other users run into the same issue : we simply set the following environment variables before using git :
http_proxy
https_proxy
The actual value of the environment variables depends on your network configuration, of course.
Yes, you have to set the http_proxy, https_proxy and no_proxy (to access to local services) in your environment.
As in many companies the same proxy manages both HTTP and HTTPS protocols, depending on the authentication is required or not, your must use one of the following syntax: