Topic "Proxy settings with custom format (works in Filezilla, but not WinSCP)"

Author Message
jkildedal

Guest


Hi

I am trying to access an ftp server through a proxy server. I managed to get it working in Filezilla, but cannot get it working in WinSCP. I even tried importing the Filezilla site, but each time I get the response:
Quote:

Connection failed.
Authentication failed.
Connection failed.
User Access denied.

Usage: USER username@hostname proxyusername
PASS password
ACCT proxypassword


If I use the "Generate Session URL/Code..." option the following settings are revealed:
Code:

SessionOptions sessionOptions = new SessionOptions
{
    Protocol = Protocol.Ftp,
    HostName = "proxyhost",
    PortNumber = 21,
    UserName = "username@hostname proxyusername",
};

using (Session session = new Session())
{
    // Connect
    session.Open(sessionOptions);

    // Your code
}


I also tried these sessionOptions which seemed logical, but here I get a timeout.
Code:

SessionOptions sessionOptions = new SessionOptions
{
    Protocol = Protocol.Ftp,
    HostName = "hostname",
    PortNumber = 21,
    UserName = "username",
    Password = "password",
};

sessionOptions.AddRawSettings("FtpProxyLogonType", "7");
sessionOptions.AddRawSettings("ProxyHost", "proxyhost");
sessionOptions.AddRawSettings("ProxyUsername", "proxyusername");
sessionOptions.AddRawSettings("ProxyPassword", "proxypassword");


What am I doing wrong and what are the right settings?
Guest




Hi again

I found a solution... I just needed to do the following:
Code:

SessionOptions sessionOptions = new SessionOptions
{
    Protocol = Protocol.Ftp,
    HostName = "proxyhost",
    PortNumber = 21,
    UserName = "username@hostname proxyusername",
    Password = "password"
};

sessionOptions.AddRawSettings("FtpAccount", "proxypassword");
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License