modularize the SSH class