Revert "Fix bug in sshKey management"

This reverts commit dec7cf7b7d5b393516c3546b085cefa873aa3a06.