ssh mode (work in progress)