Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

jll_a

..Eh, no worries. This turned out to be a username issue. Filezilla had the right username. WinSCP had the wrong one.
martin

Re: Verbose Filezilla log file

Sorry, I've forgot to ask you for a full WinSCP log file.
jll_a

Verbose Filezilla log file

Sure. Thanks for looking. See attached for the log file of a successful connection to the server via Filezilla.

I've obfuscated the domain, username, etc.
martin

Re: Authentication Error Unique to WinSCP

Please attach a verbose FileZilla log file.
jll_a

Authentication Error Unique to WinSCP

Hello -

I authenticate to an SFTP server without issue using Filezilla, but for automation purposes I need to be able to SFTP to the server using WinSCP.

Whenever I attempt to connect using WinSCP, I receive this error:

>Disconnected: No supported authentication methods available (server sent: publickey)

The server uses only a username / password for authentication, no public/private key pairs. Filezilla has no problem connecting to the same server, with the same username / password over the same port.

Here's the last half of my system log. Can anyone help?

. 2017-11-27 12:01:28.603 Looking up host "xxxx.xxxx.xxxx.com"

. 2017-11-27 12:01:28.613 Connecting to xx.xx.xx.xx port 22
. 2017-11-27 12:01:28.637 Server version: SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8
. 2017-11-27 12:01:28.637 Using SSH protocol version 2
. 2017-11-27 12:01:28.638 We claim version: SSH-2.0-WinSCP_release_5.7.5
. 2017-11-27 12:01:28.648 Doing Diffie-Hellman group exchange
. 2017-11-27 12:01:28.706 Doing Diffie-Hellman key exchange with hash SHA-256
. 2017-11-27 12:01:29.432 Verifying host key rsa2 [removed] with fingerprint ssh-rsa 2048 [removed]
. 2017-11-27 12:01:29.438 Host key matches cached key
. 2017-11-27 12:01:29.439 Host key fingerprint is:
. 2017-11-27 12:01:29.439 ssh-rsa 2048 [removed]
. 2017-11-27 12:01:29.440 Initialised AES-256 SDCTR client->server encryption
. 2017-11-27 12:01:29.440 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2017-11-27 12:01:29.441 Initialised AES-256 SDCTR server->client encryption
. 2017-11-27 12:01:29.441 Initialised HMAC-SHA-256 server->client MAC algorithm
! 2017-11-27 12:01:29.496 Using username "xxxxx".
. 2017-11-27 12:01:29.604 Disconnected: No supported authentication methods available (server sent: publickey)