using pty in ssh spawner