>>>>> "Erik" == Erik Curiel <[EMAIL PROTECTED]> writes:
Erik> Does anyone know how to use port-forwarding in putty? I
Erik> found the putty docs to be confusing. I'm on box A. I want
Erik> to ssh into box C, but box C allows ssh connections only
Erik> from box B not from A. I can get to B from A. How do I hop
Erik> directly to C from A, without logging into B and then
Erik> ssh'ing into C from B?
How about logging into B and then ssh'ing into C? Oh wait....
I'm assuming Box A is the putty box. Unless I'm an idiot, you'll have
to configure box B to do some work. You could set up a dedicated port
on B, say 8022, that automatically forwards requests on 8022 to
machine C's 22.
With iptables on B, you could do
B is 128.135.97.130
C is 128.135.100.100
/sbin/iptables -t nat -A PREROUTING -d 128.135.97.130 -p TCP --dport 8022 -j DNAT --to
128.135.100.100:22
Then you just have to putty from A to B on port 8022.
Or is B the putty box? Then you'll need something like:
http://www.tartarus.org/~simon/puttydoc/Chapter3.html#3.5
JDH
_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits