add support for allocatePTY flag when used with SSH CLI, and corresponding integration tests

because previously allocatePTY wasn't being respected when using CLI