Re: OpenSSH dynamic port forwarding



"gnomee" == gnomee <krojzl@xxxxxxxxx> writes:

gnomee> I already did set rsync script for this... I was only looking
gnomee> for more comfortable solution.

gnomee> So there is no way how to set SOCKS with SSH and send it
gnomee> through 2 hosts?

Assuming you have netcat (nc) on server1:

ssh -D 1080 server2 -o proxycommand="ssh -qax server1 nc %h %p"

gnomee> "ssh -D socks_port host" will send it to host and then request
gnomee> the "target_server:port" from there, right? I need another hop
gnomee> to server2 and then request "target_server:port" from there...

gnomee> Is that possible?

gnomee> Nico Kadel-Garcia wrote:
>> Nico Kadel-Garcia wrote:
>>
>> > Talk to your local IT staff about opening up a hole for you for
>> FTP or > Bittorrent. Seriously, if this is their security policy,
>> I'm > reluctant to help you start poking holes in it, and you
>> should be > cautious about doing it let you demonstrate that you're
>> so sharp, > you're cutting yourself. They may have actually have
>> real policies
>>
>> That came out wrong: I meant: "lest you demonstrate you're so
>> sharp, you cut yourself".


--
Richard Silverman
res@xxxxxxxx

.