shellinabox 2.21+b1
The version above has the issue in Debian 11, after confirming that the .pem is valid and contains the private and public key, and permissions are valid, Iwould still get this error.
I then tried the same .pem in Debian 12 with shellinabox 2.21+b2........