How to connect to FTP through a proxy

Advertisement

davidmlp
Guest

How to connect to FTP through a proxy

How can I get WinSCP to connect to an FTP site through my companies proxy?

I filled in my proxy info and tried different proxy types but it hangs when connecting. It looks like it is trying to connect to the FTP directly, instead of the proxy first.

Here is a python example that I was able to get to connect.
import ftplib
ftp = ftplib.FTP("proxy.com")
ftp.login(user="FTP_USERx@123.123.123.123 PROXY_USER", passwd="FTP_PASS", acct="PROXY_PASS")
ftp.dir()
ftp.quit()

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: How to connect to FTP through a proxy

So what exactly did you try? Your setup seems like Proxy type USER %user@%host %proxyuser – Did you try that? If it does not work, please post session log file.

Reply with quote

Advertisement

You can post new topics in this forum