I thought I would throw this one out there as it took me about 30 min to figure this out.
I had an OpenIndiana server that I was working on and I wanted to make a new user that had a public key for access. The problem was that when I tried to connect, it would just come back with the usual "Permission denied (publickey)." error.
Normally, this is because you forgot to set the key permissions correctly:
But in this case that was not the problem. I even tried to copy the keys to a windows host, used puttygen to convert the key and then putty to load it which gave the following error:
By default, OI does not log like linux does so I had to enable auth logging:
Now just restart the syslog service:
Now if you tail -f the authlog file you should see some details:
See that, it looks like the account was just locked out! Pretty easy to fix this:
That's all it took, hope this helps another admin, if so please feel to let others know in the comments below.