On March 17, 2009 12:43, in comp.os.linux.networking, sokrates_sf
((E-Mail Removed)) wrote:
> Hi Lew,
> thanks for your support! See missing data below:
>
>
>> First off, show us the /actual/ command (not the "prototype" you gave us
>> above) that results in your 127.0.0.1 netstat results. In fact, show us
>> the command,
>
> ssh -L 30999:localhost:8000 [destination_ip]
You /do/ realize that 'localhost' has the IP address 127.0.0.1, don't you?
> Instead of 'localhost' I also tried:
> - internal IP address of machine
Which I would expect to bind explicitly to that IP address
> - 0.0.0.0
After some experimentation, it looks like
ssh -L 0.0.0.0:30999:*:8000 <destination_IP>
will work properly.
When I try that format in one xterm
~ $ ssh -L 0.0.0.0:30999:*:8000 merlin.puter.lan
Enter passphrase for key '/home/lpitcher/.ssh/id_dsa':
Last login: Tue Mar 17 14:24:25 2009 from bitsie.puter.lan
Linux 2.6.21.5.
a check from another (local) xterm
~ $ netstat -nlp | grep ssh
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:30999 0.0.0.0:* LISTEN 6182/ssh
shows that ssh is listening like you expect it to
HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------