Added conditional ssh-key generation