#1  
Old 30th December 2008, 09:07
v2k v2k is offline
Member
 
Join Date: Sep 2007
Location: Vancouver, Canada
Posts: 93
Thanks: 3
Thanked 1 Time in 1 Post
Default ssh tunnel

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

I've got:
Box A (111.111.111.111): running a perforce server listening on port 4444
Box B (222.222.222.222): 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:111.111.111.111:4444 myuser@111.111.111.111 -N -f

then on B, I run p4 commands:
p4

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=111.111.111.111:4444 but that doesn't go through a secure ssh tunnel...

What am I missing?
Reply With Quote
Sponsored Links
  #2  
Old 30th December 2008, 12:04
marpada marpada is offline
Senior Member
 
Join Date: Sep 2008
Posts: 139
Thanks: 2
Thanked 14 Times in 14 Posts
Default

Try something like this:

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

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

P4PORT=222.222.222.222:4444
________
Gang bang young
________
LovelyWendie

Last edited by marpada; 13th May 2011 at 02:00.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH to fedora 9 box which forwards to XP box for RDP doublejz Technical 1 21st October 2008 18:16
VNC over SSH tunnel optimization blocker Server Operation 1 16th October 2008 20:45
SSH tunnel hep warkry Server Operation 2 21st April 2008 17:13
SSH DIED - Virtual Users And Domains With Postfix, Courier And MySQL herbie HOWTO-Related Questions 2 12th December 2006 02:16
SSH port forwarding (SQLYog Tunnel) mastorna Server Operation 0 22nd June 2006 01:16


All times are GMT +2. The time now is 14:29.


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