I have several users on my server and as such a separate public/private key pair for each.
The problem is that once they're added as identities (Mac OS X 10.8.4 if it makes a difference), when I connect with a user account it goes through all the keys trying to find the right one. This doesn't work so well because of MaxAuthTries.
I'd be fine with increasing my MaxAuthTries to 100 or so but, although it accepts that under a matched host, it doesn't override the original, and I really don't want to give general public 100 auth attempts for my ssh server; configuration:
MaxAuthTries 2 Match host 22.214.171.124 MaxAuthTries 100
MaxAuthTries does nothing for my ip; it still limits it to 2.
This solution wouldn't be ideal but would be acceptable if it can be done. When using a key far down the list, it takes some time to check them all and find the right one (especially if my internet connection is lagging)... Plus sending all my keys, encrypted or not, makes me uncomfortable.
Ideally, I need to connect with the correct key file and not bother trying the others. The problem is that I have most of my passcodes saved to my keychain so if I clear my identities I loose all the saved passcodes.
If this isn't possible, I need a way to change my MaxAuthTries to a big number for my IP. I thought of doing it with IPTables but I use Plesk and rather like to be able to actually use the interface to manage my firewall.
Thanks a bunch!!