add deploy_key for machine deployment and fix ssh keys handling