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

martin

Re: Cannot connect to one of my host after upgrade to newest version

Did you test if downgrade back to the previous version (what version?) resolves the problem?
Please, post logs from both versions, if it does.
Otherwise, post logs both from the code and the GUI (while running both at the same machine in the same session).
But first, please read this:
Why I cannot connect/transfer using script, when I can using GUI (or vice versa)?
boris@...

Cannot connect to one of my host after upgrade to newest version

Recently, I upgraded my WinSCP to the newest version 6.5.2. After this upgrade, my program cannot connect to one of the hosts it usually connected with no issues. This program uses using .NET API of WinSCP. At the same time, GUI Win SCP connects to this host as usual, with no issues. Here is the code I use to connect using the API (in comments, I provide actual host data for a non-working host):
Protocol workingProtocol = Protocol.Sftp;
SessionOptions sessionOptions = new SessionOptions
{
    Protocol = workingProtocol,   //
    PortNumber = port,            // 22
    HostName = hostName,          // secure.unumprovident.com
    UserName = userName,          // m3tech
    Password = userPassword,      // ZAQ567#&uj
    SshHostKeyFingerprint = sshHostKeyFingerPrints, // ssh-dss 1024  lA6XsgTQv7l72zYGwnTDmNesvZ44LaqQXkOY7trRbxU=
};
 
Session session = new Session();
session.Open(sessionOptions);

Last call returns error:
Network error: Connection to "secure.unumprovident.com" timed out.

Can someone look and help?