Passive mode + SSH tunneling set up with external tool.
I am using WinSCP 4.1.6 (Build 412). I am using PuTTY to set up SSH tunneling (using WinSCP to set it up is not an option). I am connecting to an FTP server using passive mode (the passive port is also forwarded through the tunnel). This means that the server's passive mode IP it provides is incorrect, it's the server's LAN IP on the other side of the tunnel but for this to work, WinSCP needs to override that and use 127.0.0.1 instead.
How do I configure this? The WinSCP documentation implies that it's possible to connect through a tunnel when using an external tool:
https://winscp.net/eng/docs/ui_login_tunnel#tunnel_options
Yet it doesn't describe how to set this up. Disabling tunneling in WinSCP does not work, of course, since WinSCP trusts that the passive IP sent from the server is correct (but it's not). Enabling tunneling but not entering any information also does not work, WinSCP won't connect and fails with a network error. Choosing "FTP" instead of "SFTP" as the file protocol (which is correct, it's FTP through the tunnel, not SFTP) removes the tunneling options entirely.
Really all I need is an option that lets me override the IP used for passive port connections for plain old insecure FTP connections. Without that option, it does not seem like WinSCP can actually be used to connect to an FTP server through an SSH tunnel set up by an external tool, as implied in the documentation. I feel like I must be missing something simple. I am looking at WinSCP as a free alternative to SmartFTP, which does support this configuration.
Thanks,
JC
How do I configure this? The WinSCP documentation implies that it's possible to connect through a tunnel when using an external tool:
https://winscp.net/eng/docs/ui_login_tunnel#tunnel_options
Yet it doesn't describe how to set this up. Disabling tunneling in WinSCP does not work, of course, since WinSCP trusts that the passive IP sent from the server is correct (but it's not). Enabling tunneling but not entering any information also does not work, WinSCP won't connect and fails with a network error. Choosing "FTP" instead of "SFTP" as the file protocol (which is correct, it's FTP through the tunnel, not SFTP) removes the tunneling options entirely.
Really all I need is an option that lets me override the IP used for passive port connections for plain old insecure FTP connections. Without that option, it does not seem like WinSCP can actually be used to connect to an FTP server through an SSH tunnel set up by an external tool, as implied in the documentation. I feel like I must be missing something simple. I am looking at WinSCP as a free alternative to SmartFTP, which does support this configuration.
Thanks,
JC
Last edited by JCipriani on 2008-09-14 21:33; edited 1 time in total