views:

26

answers:

1

Hello all, I am trying to do the following. I have an internal ssh server at work (e.g. [email protected]). This server is behind a gateway ([email protected]).

I would like to ssh to [email protected] from my home machine. To do so, I have been first doing ssh to log into the external gateway, and then from there I will log into the internal machine. the account names on the two systems are different.

I was wondering if this can be done in one step through some type of SSH tunneling. I have tried a few approaches that adapt what I see in different places, but keep getting error messages.

A: 

You can use

ssh -t [email protected] ssh [email protected]

and you will need to either have public key crypto set up, or enter your external password, then your internal password.

Peter