On 22.01.2017 12:58 PM, Stefan Baur wrote:
Am 22.01.2017 um 12:54 schrieb Robert Dinse: Since you can use if-clauses in such scripts, I wouldn't have wanted to rule that out before checking. Also, connecting interactively with plain ssh does do things differently - wait: what happens when you do this:
ssh user@host echo
ssh -T user@host echo
ssh -t user@host echo
X2Go does things differently, it spawns a non-interactive login shell.
Let's try ssh user@host 'bash -l -c "echo foo"' <&- instead.
Mihai