Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- SSH forwarding - Multiple interfaces
- Philippe Chaleat
February 16, 2004, 10:46 am
rate this thread
I've got a linux box with multiples interfaces (eth0; eth0:1; ...). I
would like to have 2 ssh clients forwarding the same port, but
listening on different IP.
ssh -C -b MyFirstIP -l user ip_host -L3128:squid-server:3128 -g
I thought that the ssh client will listen forwarded port only on ip
"MyFirstIP". But a netstat -a shows :
tcp 0 0 *:squid *:* LISTEN
No way to have something like :
tcp 0 0 MyFirstIP:squid *:* LISTEN
Any idea ?
Thanks in advance
- Richard E. Silverman
February 26, 2004, 11:15 pm
Re: SSH forwarding - Multiple interfaces
The -b options affects the source socket of the SSH connection, not port
forwarding. OpenSSH does not have this option; forwarding listens on
either the loopback or all interfaces. The ssh.com software does have
this capapbility, though: ssh -L<MyFirstIP>:L3128:squid-server:3128 ...
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum