How to use FTP (also with SSL or TLS) over SSH

From OpenFSG

Jump to: navigation, search

How to use FTP (also with SSL or TLS) over SSH

Here I like to explain, how to use an SSH-Tunnel to connect with your FTP.

  1. Login in at the admin page of your FSG.
  2. Go to “Services” and choose “SSH Server”
  3. Enable "Run SSH server" and "Open SSH server to the outside through the WAN port"
  4. Go to “Services” and choose “FTP Server”
  5. Enable "Run FTP server" (and "Use SSL encryption" if you like to use SSL or TLS, but it is not necessary)
  6. Now, open PUTTY
  7. Go to “Connection/SSH/Tunnels” and choose a port (for expample 6666)
  8. Enable "Dynamic" and "Auto"
  9. Click "Add"
  10. Go to “Session” and enter your Host and Port (for example “fsg” or "dyndns.somethinglikethat", Port:22)
  11. Click "Open"

Image:SSH_Tunnel_Putty.PNG

There will be a command-line, where you will have to login. After this, Putty start a SOCKS v4/v5-Proxy-Server at your local PC (127.0.0.1 with PORT: 6666) All your software, which support the use of a Proxy could use this Tunnel to your FSG. For example your FTP-Client (I use FileZilla).

  1. Open your FTP-Client
  2. Enter your Proxy-Settings
  3. Open a connection with Host: FSG, Port: 21 and your FTP-Account-Name + Password
  4. (Maybe enable SSL or TLS if you like. But your connection over SSH is really safe)

Image:SSH_Tunnel_Filezilla.PNG


If only like to use your ssh-connection for tunneling, you should enable at "SSH/TTY": "Don't allocate a pseudo-terminal"

Personal tools