Rewrite sshkey security plugin

Cleanup