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