Added asserts to wsh_ssh functions