fixed logic for ssh public key