Topic "Error at connection with .NET"

Author Message
peterpiry.rath
[View user's profile]

Joined: 2017-05-31
Posts: 2
Location: Vienna
Hi,

when I want do connect to a SFTP-Server with VB.NET I got the following error:

WinSCP.SessionRemoteException was unhandled
HResult=-2146233088
Message=Schlüsseltausch Verfahren diffie-hellman-group1-sha1 wurde nicht überprüft!
Source=WinSCPnet
StackTrace:
bei WinSCP.SessionLogReader.Read(LogReadFlags flags)
bei WinSCP.ElementLogReader.Read(LogReadFlags flags)
bei WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
bei WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
bei WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
bei WinSCP.CustomLogReader.WaitForNonEmptyElementAndCreateLogReader(String localName, LogReadFlags flags)
bei WinSCP.CustomLogReader.WaitForGroupAndCreateLogReader()
bei WinSCP.Session.Open(SessionOptions sessionOptions)

"Schlüsseltausch Verfahren diffie-hellman-group1-sha1 wurde nicht überprüft!" means: "Key-change method diffie-hellman-group1-sha1 was not checked"

What means this error and how can I solve it?


My Source code:

Dim sessionOptions As New SessionOptions

With sessionOptions
.Protocol = Protocol.Sftp
.HostName = "xxx.yyy.com"
.UserName = "xxxx"
.Password = "xxxx"
.SshHostKeyFingerprint = "ssh-rsa xx:xx:xx:xx:xx"
.PortNumber = 22
End With


Using session As New Session
' Connect
session.Open(sessionOptions)

End Using

Anybody has an idea?

Thank you very much,

br
Peter
peterpiry.rath
[View user's profile]

Joined: 2017-05-31
Posts: 2
Location: Vienna
Hi,

solved by myself. The line ".AddRawSettings("KEX", "ecdh,dh-gex-sha1,dh-group14-sha1,rsa,dh-group1-sha1,WARN")" solved the problem.

br
Peter
Advertisements

You can post new topics in this forum

Search

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