$ ssh nan...@opensuse.eskimo.com 'bash -l -c "echo foo"' <&-
Password:
stty: standard input: Inappropriate ioctl for device
foo
$ hostname
nanook
$

     So it is printing that error message and then disconnecting.

     On a machine where x2go works properly (this example is centos7):

$ ssh nan...@centos7.eskimo.com 'bash -l -c "echo foo"' <&-
nan...@centos7.eskimo.com's password:
foo
$ hostname
nanook

     You can see the only difference is that on the machine that works, it
disconnects without printing an error message, where as with opensuse it prints and error message before disconnecting.

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
 Eskimo North Linux Friendly Internet Access, Shell Accounts, and Hosting.
   Knowledgeable human assistance, not telephone trees or script readers.
 See our web site: http://www.eskimo.com/ (206) 812-0051 or (800) 246-6874.

On Sun, 22 Jan 2017, Mihai Moldovan wrote:

Date: Sun, 22 Jan 2017 14:18:46 +0100
From: Mihai Moldovan <io...@ionic.de>
To: Stefan Baur <x2go-m...@baur-itcs.de>, Robert Dinse <nan...@eskimo.com>
Cc: x2go-user@lists.x2go.org
Subject: Re: [X2Go-User] OpenSuse Leap 42

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


_______________________________________________
x2go-user mailing list
x2go-user@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-user

Reply via email to