SFTP servers denying access because of so many keys being sent
|Reported by:||AG3||Owned by:|
|Keywords:||SFTP, public key authentication, private key, key file, type 2 (protocol error), "too many authentication failures"||Cc:|
|Component version:||3.41.1||Operating system type:||OS X|
|Operating system version:||10.13.6 (17G5019)|
For an entire day I was talking to tech support of a hosting company and trying to figure out what's wrong with my connection. Turns out I have so many keys attempting to be used that the server was denying access with this error response:
Error: Server sent disconnect message
Error: type 2 (protocol error):
Error: "Too many authentication failures"
Error: Could not connect to server
If I removed my keys down to just 4 then I was able to connect. This is a huge pain and bug IMO since I should be able to specify on a per-site basis what key to use if needed like my IDE allows which doesn't run into a similar issue.
Possible solution options?
1) In the SFTP key page in settings allow me to click an "Edit Key" button or something that allows me to checkmark off what sites I want it used on.
2) On my site setting page on "Advanced" tab allow me to say "Specify key file" or allow me to specify key file on that screen for use on that site or select a dropdown from available files to use.
Crazy annoying that there isn't an option for this already in FZ.