How to use FTP (also with SSL or TLS) over SSH
From OpenFSG
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.
- Login in at the admin page of your FSG.
- Go to “Services” and choose “SSH Server”
- Enable "Run SSH server" and "Open SSH server to the outside through the WAN port"
- Go to “Services” and choose “FTP Server”
- Enable "Run FTP server" (and "Use SSL encryption" if you like to use SSL or TLS, but it is not necessary)
- Now, open PUTTY
- Go to “Connection/SSH/Tunnels” and choose a port (for expample 6666)
- Enable "Dynamic" and "Auto"
- Click "Add"
- Go to “Session” and enter your Host and Port (for example “fsg” or "dyndns.somethinglikethat", Port:22)
- Click "Open"
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).
- Open your FTP-Client
- Enter your Proxy-Settings
- Open a connection with Host: FSG, Port: 21 and your FTP-Account-Name + Password
- (Maybe enable SSL or TLS if you like. But your connection over SSH is really safe)
If only like to use your ssh-connection for tunneling, you should
enable at "SSH/TTY": "Don't allocate a pseudo-terminal"
