9

I have a machine running an ftp server and I'd like to access it from a machine located on another network behind a router only authorizing port 80.

I was thinking of a ssh tunnel like:

ssh -L local_port:${ftphost}:20 user@{sshhost}

Where ${sshhost} is another machine that have access to the ftp server ${ftphost}.

${sshhost} is reachable from my host while ${ftphost} is only reachable from ${sshhost} not mine.

Would that be the best solution ?

RzR
  • 3,068
  • 29
  • 26
Luc
  • 16,604
  • 34
  • 121
  • 183
  • @rzr: there is no need to add tags for the sake of filling the tag list -- edits should only be made where they improve the context of the question significantly. – Qantas 94 Heavy Jan 02 '15 at 01:51

1 Answers1

8

The O'Reilly Book "SSH, The Secure Shell: The Definitive Guide" contains a whole chapter about FTP Forwarding. I think that should answer all of your questions.

Robert
  • 39,162
  • 17
  • 99
  • 152