Rewrite sshkey security plugin

Improved error output.
Updated docs.