For work, I work in a closed network. There are a few IP addresses that we have set up that are only accessible from inside our network. There is one box, though, that we can SSH into and tunnel through to get to our respective developer boxes.
I know I can get traffic from our developer box by using the -L
argument of ssh. I was wondering if there was a way I could tunnel through our open box, to get into a closed box were our Subversion (SVN) repository is stored?
My computer --> Open box --> Developer boxes/SVN repository
I can't ssh into the SVN box, but is there a way to use ssh like a proxy to get access to the private Subversion box?
UPDATE:
1.1.1.1 -> Open Box 1.1.1.2 -> SVN Box
I can SSH into the SVN box after I tunnel through the open box:
ssh [email protected]
ssh [email protected]
This will allow me access to the SVN box. I figure, ssh into open box, local forward port 22 of SVN box to my port 22. Thus
ssh [email protected] -L 22:1.1.1.2:22
Then using SVN in command line:
svn co svn+ssh://user2@localhost/path
This returns
svn: Network connection closed unexpectedly
Why is this happening? Does svn+ssh use another port that I am not aware of?