Posted: 2015-01-21 19:30
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.
.Protocol = Protocol.Sftp
.HostName = "184.108.40.206"
.UserName = "healthpro"
.Password = "*****"
.SshHostKeyFingerprint = "ssh-rsa 2048 66:fb:7a:3d:8c:07:f0:ef:b0:89:d8:f5:92:0a:3e:c4"
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.
Location: Prague, Czechia
It looks like there are lot of spaces as the end of hostname (where it probably does not matter) and username (where it matters):
. Host name: 220.127.116.11 (Port: 22)
. User name: healthpro (Password: Yes, Key file: No)
. Looking up host "18.104.22.168 "
! Using username "healthpro ".
Any idea where these come from?
Can you attach a complete log file from .NET assembly?
You can post new topics in this forum
And it's free!