Added promises to manage ssh service