Hi Thaths,
Which firewall is this? In the simplest case, you have to put some
portforwarding rule like this on the firewall box (using ipportfw if
the firewall is a Linux box, YMMV on other firewalls):
Map src <anything>:<anything> dest localhost:22000
to <machineB>:22
Now ssh -p 22000 firewall and voila! you are connected to machine B's
ssh port. Do anything ssh can after that.
I've used this and it worketh like a charmeth. The firewall was
(needless to say) a Linux box with ipchains and ipportfw.
Regards,
-- Raju
>>>>> "Thaths" == Sudhakar Chandra <[EMAIL PROTECTED]> writes:
Thaths> Hi, I was wondering whether anyone here has managed to
Thaths> connect to a machine behind a firewall using ssh.
Thaths> Here is the setup:
Thaths> Machine A ----->| Firewall |---------> Machine B
Thaths> Machine A is inside the firewall and Machine B outside. I
Thaths> can do almost any normal net activity (http, PASV [This is
Thaths> important] FTP, https, NNTP etc.) from machine A.
Thaths> I want to be able to connect to machine A from machine B
Thaths> that is outside the firewall and run applications (xterm,
Thaths> netscape, mutt, trn etc.) on machine A but DISPLAY-ing on
Thaths> machine B. Both machine are Linux boxes. Machine A is
Thaths> not pinggable from machine B.
Thaths> I guess before I leave work I need to run something on
Thaths> machine A to create a runnel to machine B and when I reach
Thaths> home I need to do something on machine B and use the
Thaths> tunnel to run apps on machine A.
Thaths> How exactly do I do this?
----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/