How to Login to SFTP with Password/Passphrase instead of Hash?
I am looking to open a SFTP session and I would like to be able to connect to sites via the SFTP Passphrase or Key Hash.
Currently I am only able to figure it out using the Hash.
[code]
With sessionOptions
.Protocol = Protocol.Sftp
.HostName = strURL
.UserName = strUserName
.Password = strPassword
.PortNumber = 22
.SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
End With
[/code]
Any suggestions would greatly be appreciated.
Currently I am only able to figure it out using the Hash.
[code]
With sessionOptions
.Protocol = Protocol.Sftp
.HostName = strURL
.UserName = strUserName
.Password = strPassword
.PortNumber = 22
.SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
End With
[/code]
Any suggestions would greatly be appreciated.