Connecting to an SFTP server using username and password authentication fails with the error:
Too many bad authentication attempts! com.jcraft.jsch.JSchException: 11 Too many bad authentication attempts!
Resolution
The issue is caused by the password containing a backslash (\). A backslash is treated as a control or escape character and must be escaped accordingly. If not handled correctly, a control or escape character in a password can cause connection or authentication errors.
Either remove the backslash (\) or replace it with a double backslash (\\) to escape it properly.