Modify ssh-keygen procedure