Shlomi Agiv
Shlomi Agiv

Reputation: 1198

What to do when I can't directly access Git server?

To access a certain Git server, I need to ssh to a remote Linux workstation that only it can access the git server.

What can I do if I want to use the Git from my local Linux workstation?

Upvotes: 0

Views: 118

Answers (1)

jhoepken
jhoepken

Reputation: 1858

Create a ssh tunnel through your Linux work station. As explained here

ssh -f [email protected] -L 2000:personal-server.com:25 -N

The -f tells ssh to go into the background just before it executes the command. This is followed by the username and server you are logging into. The -L 2000:personal-server.com:25 is in the form of -L local-port:host:remote-port. Finally the -N instructs OpenSSH to not execute a command on the remote system.

Upvotes: 2

Related Questions