Resolve problems with authorized_keys permissions

Sometimes I had problems to connect to a server via public key authentication. In most cases I could solve them by setting up the right permissions for the file and path of the authorized_keys file. This can be done as shown below:

Linux – Solve “Too many authentication failures for X” error

If you got the “Too many authentication failures for X” error on trying to connect to a server over ssh you can use the -o parameter to set the PubkeyAuthentication option to no.

With that parameter your machine won’t try to send all your public keys any more on ssh connect. As an alternative […]