Unix v2 provisioning connector returns SSH Error: unknown key type '----- BEGIN' error when creating a new Unix endpoint. This problem was observed on CentOS 6.2 Linux machine, but can happen with any other Linux/Unix flavors.
Creation of a new Unix endpoint using Unix v2 provisioning connector is described here: UNIX v2 Connector - CA Identity Management & Governance Connectors - CA Technologies Documentation
One of the steps is to generate public/private key pair using puttygen application (although any other means to generate key pair are fine).
The following error when creating a new Unix v2 endpoint: SSH Error: unknown key type '----- BEGIN' seems to indicate that generated public key has incorrect format.
However this message is very probably a red herring. The actual problem is highly likely on the server side (i.e. on Unix endpoint side) rather than on the client side (i.e. on JCS side) Here are some recommendations on how to find the real cause: