Post a reply

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

peterpiry.rath

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
peterpiry.rath

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