Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
How to configure a shortcut for an SSH connection through a SSH tunnel

Multiple networks I can connect to have the following set up. There is a single node that can be accessed with ssh from the internet, and from there you can ssh to the inside network.

Is there a way, that on my ubuntu box (no sudo rights), I somehow can configure that the command ssh internal.host is first setting up an connection to external.host and from there to internal.host? In the ideal situation it would be something very transparent, so that I even would be able to do scp myfile internal.host:

All authentication is done with certificates.

Btw. I am aware of ssh tunnels. I'm only searching something more transparent, I don't want to have to always manually open an ssh tunnel to reach a host.

share|improve this question
add comment

marked as duplicate by EEAA, Mark Henderson Apr 5 '11 at 0:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

edit your .ssh/config file and add:

Host internal.host
   User abc
   ForwardX11 yes
   ProxyCommand ssh -qxT external.host netcat internal-ip-of.internal.host 22
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.