Topic "Server Sent Public Key"

Author Message
Hapster

Guest


I have written an application that makes use of the .NET assembly. We are connecting successfully expect for one site. Here is the code and the error message we are getting:

Code:
SessionOptions sessionOptions = new SessionOptions
{
Protocol = Protocol.Sftp,
HostName = rITTHostName,
UserName = rITTUserName,
Password = rITTPassword,
//GiveUpSecurityAndAcceptAnySshHostKey = true
SshHostKeyFingerprint = "ssh-dss 1024 e4:8a:0d:62:d8:0c:9f:e3:f0:4f:67:23:a4:51:a3:da"
};

Error Message:
Disconnected: No supported authentication methods available (server sent: publickey)
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForGroupAndCreateLogReader()
at WinSCP.Session.Open(SessionOptions sessionOptions)
at Curia.Jcms.RITT.CheckAndSendFilesLeftBehind() in C:\Users\Aditya\Source\Workspaces\jcms.webservice\jcms.webservice\RITT.cs:line 172

I'm trying to figure out why this one site and how best to troubleshoot/correct this problem.

Thank you in advance for helping.
Aditya
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
Looks like the server does not support a password authentication. You have to use public key authentication.
Guest




martin wrote:
Looks like the server does not support a password authentication. You have to use public key authentication.


That makes sense. However, the same software is connecting to the same server from different locations (my other clients). Each location has a different user name and password hence different login account. Do you think it could be related to the account that was setup?

Thanks,
Aditya
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
The server may require different authentication method for different accounts.
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