move ssh methods to separate class