Reverse ssh code cleaup