[Bug?]: Intermittent connections failing with "crypto/rsa: verification error" #1750
Closed
2 tasks done
Labels
bug
Something isn't working
Bug description
We see intermittent instances of users failing SSH negotiation. They don't even get to authentication; the connection fails somewhere in the SSH handshake, and SFTPGo logs a "crypto/rsa: verification error" message. From the client's point of view, the connection drops unexpectedly.
This problem only occurs rarely (<1% of connections for affected users), and doesn't affect all users. I have not been able to identify any common factors among the users that are affected, and there's no sign that the server is hitting connection limits or is experiencing significant load. Users who experience the problem can reconnect successfully the next time they try, but it tends to trip up semi-automated transfers with poor error handling.
Steps to reproduce
The bug cannot be reliably reproduced, only statistically over a large number of connections.
Expected behavior
User is able to negotiate the SSH connection and proceed to authentication.
SFTPGo version
2.6.2
Data provider
PostgreSQL
Installation method
Community RPM package
Configuration
Via env.d entries (proxy addresses redacted):
Relevant log output
What are you using SFTPGo for?
Medium business
Additional info
I realize that this will probably turn out to be an obscure network problem of some sort rather than a bug in SFTPGo, and we are looking into that as well. I raise this issue to ask whether there's anything we can do to get more information out of SFTPGo, or whether it comes down to "the crypto/rsa component throws an error and that's about all we can get".
The text was updated successfully, but these errors were encountered: