Find the answer to your Linux question:
Results 1 to 4 of 4

Thread: FTP to SSH

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Cool FTP to SSH

    I have a strange request. I've never done this before, so I don't know if it is possible. First, I'll set up the scenario.

    1) I have a Windows XP laptop (work) that I will be using this weekend to log into remote computers on a customer site (we'll call them Sprant). I have to run a few commands, and FTP the files to my laptop. Some of these files are quite large and my laptop hard drive has only 40 GB (15 GB remaining).
    2) My home computer has Suse Linux with a 110 GB hard drive and and external 150 GB hard drive and both have probably a combined 200 GB free. My home computer can not get into the customer's network to ftp files from them.
    3) Now, what I really want to do: I want know if there is a way to set up a FTP connection to the remote customer computer, and tunnel it through my connection in to my home computer which only has SSH enabled?

    To hopefully clarify:

    remote directory = /some/directory
    local directory = ssh

    Can this be done?

    Thank you in advance,

    Cherokee Kid

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    Port forwarding seems to be what you are after. A quick search turned up this article on ssh port forwarding.

    From my understanding of your post, you want to be at your work PC and use remote port forwarding.

    work:$ ssh -R
    home:$ ftp localhost 2121
    Should set you up correctly. The customer site will see the connection as coming from your work computer, and the home to work part of it will be protected by ssh.

    Let us know how you get on,

    To be good, you must first be bad. "Newbie" is a rank, not a slight.

  3. #3
    Thank you. I will try it.

  4. $spacer_open
  5. #4
    In the words of Jim Carey,

    "This is B E A utifil"

    I've tried to get a real world example of when I would need tunneling, and this is proof positive for me that I understand tunneling.

    Thank you again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts