ssh: move pseudo tty into "scripting" section