Error at connection with .NET

Advertisement

peterpiry.rath
Joined:
Posts:
2
Location:
Vienna

Error at connection with .NET

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

Reply with quote

peterpiry.rath
Joined:
Posts:
2
Location:
Vienna

Solved

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

Reply with quote

Advertisement

You can post new topics in this forum