cleanup: extract classes in SSH package