SSH Too many authentication failures

If you try to connect to a another machine via ssh and you get this error:

Received disconnect from 192.XXX.XXX.XXX port 22:2: Too many authentication failures for username Authentication failed.

The fastest solution to connect via ssh is t ignore local oublic keys by:

ssh -o PubkeyAuthentication=no username@serverurl.com