Afficher un message
Vieux 25/11/2006, 20h57   #3
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ssh port forward - for port range

In article <1164153474.108673.130230@b28g2000cwb.googlegroups .com>
chandranramesh@gmail.com writes:
>
>Im trying to set up ssh local port forward.
>But I dont know the ports to connect to on the remote machine
>beforehand.


You could perhaps use OpenSSH's "dynamic" port forwarding, i.e. SOCKS -
see the -D option.

>Is it possible to setup forward for a range of ports?


Not as such (with OpenSSH), though (with OpenSSH) you can AFAIK give any
number of -L options - i.e. a range is just a matter of giving one -L
option for every port in the range. A bit verbose, but the end result
would be the same - ssh (any flavour) would need to open a separate
socket for every port in the range, there's no such thing as wildcarding
or "ranging" the port in the socket API.

--Per Hedeland
per@hedeland.org

  Réponse avec citation
 
Page generated in 0,05175 seconds with 9 queries