sshを使ってリモートマシンでコマンドを叩く際の注意点 - 覚書
SSHで「-t」オプションを付けても、失敗するときの対処法 : 元うなぎ屋
Using a pty has a notable side effect: stdout and stderr are combined and both reported via stdout
linux - Pseudo-terminal will not be allocated because stdin is not a terminal - Stack Overflow