Topic "Password authentication failed"

Author Message
klauria
[View user's profile]

Joined: 2015-01-21
Posts: 1
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
GUIvsWindows.txt (8.06 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
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):

Code:

. 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?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License