Go2Linux posted a tutorial about creating a pseudo TTY with ssh -t
The -t option in the ssh -t command force pseudo-tty allocation.ssh -t (open a pseudo tty) run commands on a remote server
This is very handy when you need to run remote screen based applications on the remote server, establishing something like a temporary ssh connection, that will be established while the command is running, and it is closed as soon as the command is finished.