If you encountered issues like “Permission denied, please try again.” during SSH, there are a few steps to consider.
One possibility is that you may want to took at /var/log/secure which might give some clues to the possible causes. One could be due to lock out rules for SSH. There is one interesting writeup which could shed light into this possibility. Configure lockout rules for SSH login
Another possibility is that you may want to check on the permission on your .ssh directory which may be incorrectly set. For example, you may want to consider
- .ssh directory: 700 (drwx——)
- public key (.pub file): 644 (-rw-r–r–)
- private key (id_rsa): 600 (-rw——-)