question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSH2 Server fails to authenticate putty/winscp/filezilla

See original GitHub issue

Unix-based clients like the ssh command or several sftp clients are able to connect against my own ssh server implementation, which currently only supports the “password” authentication method. However, using putty, winscp or filezilla, which are widely used in the windows world, fail to authenticate. The behaviour goes as follows:

ssh command: The client connects, the different auth methods are tried (‘none’, ‘keyboard-interactive’, ‘publickey’), which all get rejected with ctx.reject(), until the client finally ask for ‘password’ method, which then authenticates successfully with ctx.accept()

putty/winscp/filezilla: The client connects, tries to authenticate with the “none” method. I ctx.reject() the “none” authentication method, which causes the client to fail directly with client error message "Disconnected: No supported authentication methods available (server sent: )". The client will not try any more authentication methods.

I have tried to change several options in putty, but they all lead to the same behaviour.

Any ideas why this is happening?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
131commented, Jul 20, 2015

Same issue here, using [‘password’, ‘publickey’], true works like a charm, do you want a PR to make this more explicit in the doc ?

0reactions
mofuxcommented, Mar 22, 2015

Elegant patch, works perfectly, thanks for implementing this feature. You’re the man!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Troubleshoot SSH Authentication Issues
This indicates that authentication has failed and can be caused by a number of ... You can enable password authentication in the SSH...
Read more >
SFTP/SCP server SCP will not authenticate - Free Tools & Trials
Authenticated user ops01 from IP 10.10.41.3. Client shows: Authentication log (see session log for details): Using username "ops01". Authentication failed ...
Read more >
ssh autheication problem - Cisco Community
now, when I try to access the router using Putty ssh, I get to the authentication screen but after entering uername and password...
Read more >
Issues authenticating with php's ssh2 - Stack Overflow
It seems that the two servers are communicating, but simply are not authenticating, as I am getting the "fail: unable to authenticate" message....
Read more >
SFTP Test Connection Fails For Private Key Authentication ...
Connection to sftp server fails with "Could not establish connection. oracle.xdo.delivery.ssh2.SshException: Exception in authenticating"
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found