How to configure an SFTP client Filezila to a machine which is accessible by doing SSH second time?

1

1

MyMachine <---SSH----> AccessMahcine <---SSH----> Target Machine.

The target machine is accessible via SSH through an access machine. I can SSH to access machine, and from there again SSH to the target machine. Am able to connect successfully via Putty. But i was unable to configure an FTP client like Filezila. I tried tunnelling SSH port to local , and try to connect to it via Filezila. But it's connecting to the access machine only even though the Putty is currently connected on the Target machine.

Following are the steps i follow.

  1. Connect Putty to Access machine
  2. SSH to target machine from Putty window itself
  3. Open Filezilla and connect
  4. Filezilla connects and list folders. But folders are from access macine only. Not the currently connected target machine.

The putty and FileZilla configurations are as below.

  • Putty tunnel port 22 to localhost:3111
  • Filezilla connects to 127.0.0.1 port 3111

Filezilla connects and list folders. But folders are from access macine only. Not the currently connected target machine.

Ajith George

Posted 2016-06-27T04:54:11.743

Reputation: 113

It all depends on the access machine's configuration. Based on the information provided, I'm tempted to guess that it's probably intentionally not possible. – Julie Pelletier – 2016-06-27T05:08:46.407

Look at or contact the admin of the access machine and aas @Ajith suggested confine or deny that ProxyCommand or some other forwarding protocol IS working and running, if not as @ajith said its not possible – linuxdev2013 – 2016-07-09T12:25:47.160

Answers

0

I would build the tunnel with putty that connects from your machine to the access one. It is important to specify the target machine address, not the port only.

Putty configuration (Connection / Tunnels):

Source port: 3111 (example, arbitrary number);
Destination: [target_IP_or_name_as_seen_from_access_machine]:22.
Local, Auto.

Then connect FileZilla to sftp://127.0.0.1:3111.

This assumes the target ssh is available on default port: 22.

Kamil Maciorowski

Posted 2016-06-27T04:54:11.743

Reputation: 38 429

Thanks for the quick update you saved my day. Changing tunnnel config destination to target machine IP made it worked – Ajith George – 2016-06-27T05:35:11.870