Password authentication failed
I am attempting to log in to a remote SFTP site using WinSCPnet.dll from a windows service using the LocalSystem account. The log in fails with a "Password authentication failed" error. If I use the same parameters with the GUI the log in succeeds. Below is the VB.net code snippet I'm using to setup the Session Options.
With SessionOptions
.Protocol = Protocol.Sftp
.HostName = "65.242.47.171"
.UserName = "healthpro"
.Password = "*****"
.SshHostKeyFingerprint = "ssh-rsa 2048 66:fb:7a:3d:8c:07:f0:ef:b0:89:d8:f5:92:0a:3e:c4"
End With
I suppressed the password but they are the same for both tests. I attached a file showing the logs for the GUI and windows sessions. I noticed the windows session is missing
. 2015-01-21 10:46:21.039 SFTP Bugs: A,A
. 2015-01-21 10:46:21.039 SFTP Server: default
along with what looks to be information messages
. 2015-01-21 10:46:21.228 Waiting for the server to continue with the initialization
. 2015-01-21 10:46:21.228 Detected network event
Any help you can give on this will be greatly appreciated.
Thanks!
Ken
With SessionOptions
.Protocol = Protocol.Sftp
.HostName = "65.242.47.171"
.UserName = "healthpro"
.Password = "*****"
.SshHostKeyFingerprint = "ssh-rsa 2048 66:fb:7a:3d:8c:07:f0:ef:b0:89:d8:f5:92:0a:3e:c4"
End With
I suppressed the password but they are the same for both tests. I attached a file showing the logs for the GUI and windows sessions. I noticed the windows session is missing
. 2015-01-21 10:46:21.039 SFTP Bugs: A,A
. 2015-01-21 10:46:21.039 SFTP Server: default
along with what looks to be information messages
. 2015-01-21 10:46:21.228 Waiting for the server to continue with the initialization
. 2015-01-21 10:46:21.228 Detected network event
Any help you can give on this will be greatly appreciated.
Thanks!
Ken