HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   ssh tunnel (

v2k 30th December 2008 10:07

ssh tunnel
I've read every document I can find, but I can't get this to work.

I've got:
Box A ( running a perforce server listening on port 4444
Box B ( a perforce client using port 1666

I ssh into B and I want run p4 commands through an ssh tunnel to box A.

On B, I enter:
ssh -i somekey -L 1666: myuser@ -N -f

then on B, I run p4 commands:

I get this error after a long while:
channel 2: open failed: connect failed: Connection timed out

I can get box B to run p4 commands on A if I just set the P4PORT= but that doesn't go through a secure ssh tunnel...

What am I missing?

marpada 30th December 2008 13:04

Try something like this:

ssh -i somekey -L 4444: myuser@ -N -f

This tunnels B's port 4444 to remote port 444, so now B's could connect using its local port 4444

Gang bang young

All times are GMT +2. The time now is 18:02.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.