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

Advertisement

boris@...
Guest

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,165
Location:
Prague, Czechia

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)?

Reply with quote

Advertisement

You can post new topics in this forum