added a -t switch for ssh so sudo will have a tty.