Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FileZilla SFTP connection through intermediate SSH [closed]

I am using PuTTY to connect to an intermediate Linux based server. On that server I use ssh to connect to the (Linux based) server I try to target. On that server I want to run a program, but I have to send it to that inner server from my PC. A direct connection is not possible.

At the moment I use PSFTP to the intermediate server and PuTTY+sftp from the intermediate server to the inner server to send the file, but this takes a lot of work to do everytime.

Is there a way to use FileZilla to set up an SFTP connection to the inner server through the intermediate server?

So in stead of:

  • PSFTP: PC -> user@intermediate
  • PuTTY: PC -> user@intermediate
    • sftp: user@intermediate -> user@inner

I want:

  • FileZilla: PC -> intermediate -> user@inner
like image 505
Rik Schaaf Avatar asked Jun 02 '14 12:06

Rik Schaaf


People also ask

How do I connect to FileZilla via SFTP?

Step 1. With FileZilla is open click the site manager button to create a new site connection. Step 2. With the Site Manager window open click the "New Site" button. Step 3. Type a name for the connection. Step 4. You will need to fill out the following information to connect via SFTP. Host: This is the hostname.

How do I connect to FileZilla with SSH key?

Open FileZilla client In the Edit – Preferences menu, select SFTP under Connection Click Add key file… button to add your SSH private key (If your key is in OpenSSH format, FileZilla will prompt you to convert it to PuTTY’s PPK format) Click OK button to save setting and exit Preferences window

How to connect to SFTP using SSH private key?

Click Connect button to connect ( OK button to save the connection) In the Edit – Preferences menu, select SFTP under Connection Click Add key file… button to add your SSH private key (If your key is in OpenSSH format, FileZilla will prompt you to convert it to PuTTY’s PPK format)

How to set up SFTP connection with site Manger?

Open Site Manger by clicking the top left icon in menu bar, or press Ctrl+S Click New Site button and gives a name to the new site connection Key file: [select your SSH private key in .ppk or .pem format] Click Connect button to connect ( OK button to save the connection) In the Edit – Preferences menu, select SFTP under Connection


1 Answers

You can setup an SSH tunnel (aka port forwarding) using PuTTY from the intermediate server to the target server and connect with FileZilla to the tunnel.

See details on port forwarding in PuTTY.

Or see a specific guide for setting up port forwarding to tunnel file transfer client (WinSCP particularly, though you can apply it to FileZilla easily).

Actually, WinSCP SFTP client has a (single step) tunneling functionality built in. So, with WinSCP, it is very easy to do what you ask for. See the Tunnel page of its Advanced Site Settings dialog.

(I'm the author of WinSCP)

like image 127
Martin Prikryl Avatar answered Oct 25 '22 14:10

Martin Prikryl