0 votes
by (170 points)

Hi - I'm evaluating your sftp library - I wrote an app that tests all the sites we connect to, most work perfectly, some return the following exception (with "supported methods" == empty string.

Rebex.Net.SshException: Authentication method not supported. Supported methods: ''.
at Rebex.Net.SshSession.MS(String A, String B, Boolean C)
at Rebex.Net.SshSession.OS(String A, String B, SshPrivateKey C, SshGssApiCredentials D)
at Rebex.Net.SshSession.Authenticate(String userName, String password, SshPrivateKey privateKey)
at Rebex.Net.Sftp.EFB.EV(String A, String B, SshPrivateKey C, SEB D)
at Rebex.Net.Sftp.ZN(String A, String B, SshPrivateKey C, SEB D)

Applies to: Rebex SFTP

1 Answer

0 votes
by (144k points)
edited by

The exception message is actually misleading. This exception is raised when password authentication has been attempted, but the server rejected it and sent back an empty list of authentication methods to try (see RFC 4252 for details).

Update: This particular error message has been changed to "Authentication attempt rejected by the server" in 2015 R3 release.