Disconnected: No supported authentication methods available
Disconnected: No supported authentication methods available (server sent: publickey, keyboard-interactive)
If I have to manually accept the key that would be OK but would really like to accept automatically.
Here's me code
With mySessionOptions
.AddRawSettings("AuthKI", "1")
.Timeout = New TimeSpan(0, 2, 0) '2 minutes
.Protocol = Protocol.Sftp
.HostName = sIP
.PortNumber = Val(sPort)
.UserName = sUser
.Password = sPassword
.GiveUpSecurityAndAcceptAnySshHostKey = True
End With
Using mysession As Session = New Session
mysession.Open(mySessionOptions)
It's failing on the open command. I've been playing with the .addrawsetting option (tried using hostkey instead of AuthKI with same result) . I've been able to connect to win7 machines with this code. Unfortunatly I still need to connect with XP machines for a time. This is on a company network and I'm really only concerned with what is being sent across the wire so I use .GiveUpSecurityAndAcceptAnySshHostKey = True.
Does anyone know how to accept the key automagically? using vb.net
Regards
Rob
Edit: Attached log