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 Duplicates:
SSH to a computer that will then SSH to another computer
how to ssh to the machine behind the firewall?

I have 3 Linux machines A, B and C.

I can ssh from A to B; B to C but not from A to C directly because C is behind a firewall.

Is there a way that I can be able to ssh from A to C directly? I heard about tunneling but I don't know how. I have only root permission in A, but not B and C.

share|improve this question

marked as duplicate by Zoredache, voretaq7, womble, Chopper3 Aug 28 '11 at 8:14

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 1

You can setup an SSH tunnel From A to B, and use ProxyCommand on that connection to setup a tunnel that then allows you to SSH "directly" from A to C. There is an example in the ssh_config man page (look for ProxyCommand) that covers exactly this use case.

share|improve this answer

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