Cloning 4C on a cluster

In general there are several ways to get the 4C source code to a cluster. In the following some possibilities are explained.

Note:

  • Limitations due to firewall settings may emerge.

  • In case you want to commit changes in your repository on a cluster, remember to set up 4C as described in the Installation guide. However, in general, it is recommended to develop code primarily on your workstation.

Method 1: Clone 4C repository from GitHub

Clone the 4C repository from GitHub to a cluster following the procedure as described in README.md. Note: This requires that firewall settings allow access from the cluster to the GitHub repository.

Method 2: Clone 4C from local workstation

Clone the 4C repository from your workstation to a cluster using ssh:

ssh <coworker>@<cluster>
cd <clusterworkspace>
git clone ssh://<coworker>@<host>/<coworkerworkspace>/4C 4C
exit

Note: This requires that firewall settings allow access from the cluster to your workstation.

Method 3: Clone 4C from local workstation via reverse ssh tunnel

In the event that firewall settings forbid direct access from the cluster to your workstation, open a reverse ssh tunnel from your workstation to the cluster

ssh -R <port>:<workstation>:22 <coworker>@<cluster>

where <port> is in the range from 1024 through 49151. > Note: Always close the ssh tunnel using the exit keyword afterwards!

This opens a new shell on the cluster that allows access to your workstation via the ssh tunnel:

cd <clusterworkspace>
git clone ssh://<coworker>@localhost:<port>/<coworkerworkspace>/4C 4C
exit

The ssh tunnel access to the workstation is needed every time you want to update anything on the cluster, e.g., for executing git fetch, git pull, and even git push.