Fix public key generation bug, add libssh 1 support to CentOS