[TriLUG] ssh 'through' a firewall

davis davis at skink.net
Sat Apr 24 10:24:36 EDT 2004


On Fri, Apr 23, 2004 at 07:29:40PM -0400, Douglas Kojetin wrote:
> hi all-
> 
> i ssh to a computer computer behind a firewall that has access to other 
> computers behind the network that i frequently need to ssh to.  what i 
> normally do is
> 
> ssh user at firstcomputer
> ssh user at secondcomputer
> 
> is there a shortcut i can take so that i don't ssh twice?  i've setup 
> aliases and 'no-password authentication' to ease things, but it would 
> be nice to do the above in one command if possible.

Hello Douglas,

A couple of things come to mind.

If "firstcomputer" is your firewall, then change your firewall so it forwards ssh
traffic to "secondcomputer".  This way, you get to the "secondcomputer" in one ssh.  

If you already have ssh forwarding to "firstcomputer", then create a
second entry in your firewall so that a ssh to a non-standard port is forwarded
to the standard ssh port on the "secondcomputer".  The end result is that you
can still ssh to "secondcomputer" in one ssh.  You can tighten the security on this
non standard port so that connections are only allowed from particular ip address.

JD

> 
> thanks!
> doug
> 
> -- 
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

-- 
Happy Trails	

John F. Davis
ABC #6334 1992 R100GSPD                                  Durham, North Carolina
http://www.skink.net



More information about the TriLUG mailing list