refactor(ssh): rip out unused sync and DRY session logic