properly request a PTY when running sudo ssh commands