Fix errors if ssh-keygen is not posible

Prevent errors if ssh-keygen failed ( Close #512 )