Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

yaguarete79

Trying to access FTP behind a firewall

Hi, I'm using WinScp library SessionOptions with the following code:

SessionOptions sessionOptions = new SessionOptions
{
Protocol = Protocol.Sftp,
HostName = txtUrlAConectar.Text,
UserName = txtusuario.Text,
Password = txtpasswordftp.Text,
SshHostKeyFingerprint = txtkeydeseguridad.Text
};

I'm opening session with its options, but how can I set the outgoing firewall values?
I mean, I'm behind a firewall trying to get out and then finally reach the sftp server.
Is there any option in SessionOptions to set firewall username and password? I've already have an open port at that firewall, opened by the Firewall Administrator. I'm just needing to specify those three parameters: username, password and port, when I attempt connection.

Thank you!