Oh geez, what a rookie mistake. Thank you for the help, sorry to waste your time looking at this.
- rht609
SessionOptions
object called sessionOptions
but passed mySessionOptions
(which doesn't exist) to the Open
method.
With sessionOptions
.Protocol = Protocol.Sftp
.HostName = "xxxxx"
.UserName = "xxxx"
.Password = "xxxxxxxx"
.SshHostKeyFingerprint = "ssh-rsa 1024 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
End With
Using mySession As Session = New Session
' Connect
mySession.Open(mySessionOptions)
End Using
SessionOptions.HostName is not set