cleanup: extract classes in SSH package
cleanup: simplify exec command methods