SSH tunnel for github on jlab clon*** machines:

(First make sure you have an RSA key pair in your clon home that is registered with your github account)

SSH to the clon machine as usual through the gateway

> ssh user@hallgw.jlab.org -t ssh user@clon***

Then create a tunnel to github.com:22 through jlabl4

> ssh user@jlabl4 -L XXXX:github.com:22

You now have a tunnel from the inside host port XXXX to github.com port 22.

You then need to open a new terminal window and ssh to the same clon machine through the gateway

> ssh user@hallgw.jlab.org -t ssh user@clon***

Now in that terminal, you can access github like this:

> git clone ssh://git@localhost:XXXX/slaclab/heavy-photon-daq.git

 

When you first clone a repo, you'll need to mod the submodule config. Edit .gitmodules:

[submodule "drivers"]
path = drivers
url = ssh://git@localhost:5555/slaclab/aes-stream-drivers.git
branch = master

> git submodule init
> git submodule update

And avoid checking the submodule path change into the shared repository.

  • No labels