Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Password authentication failed

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: 65.242.47.171        (Port: 22)

                          ^^^^^^^ 
. User name: healthpro            (Password: Yes, Key file: No)
                       ^^^^^^^^^^
. Looking up host "65.242.47.171       "
                                ^^^^^^^
! Using username "healthpro           ".
                           ^^^^^^^^^^^

Any idea where these come from?

Can you attach a complete log file from .NET assembly?
klauria

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