Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: limeblack on September 30, 2015, 06:30:48 PM

Title: X Server SSH (X11 Forwarding) Live CD
Post by: limeblack on September 30, 2015, 06:30:48 PM
I'm booting TCL 6 from a live cd/iso.
Following these guides: http://goo.gl/p1OaP6 (http://goo.gl/p1OaP6),http://goo.gl/n5jd2B (http://goo.gl/n5jd2B), http://goo.gl/FYtD67 (http://goo.gl/FYtD67), http://goo.gl/LsjHu3 (http://goo.gl/LsjHu3), http://goo.gl/wxd1Bp (http://goo.gl/wxd1Bp)
I've gathered the following.  Run

tce-load –wi openssh.tcz
tce-load -wi Xorg-7.7-bin.tcz

inside .Xsession replace
-nolisten tcp
with
-ac

edit /usr/local/etc/ssh/sshd_config to include

X11Forwarding Yes
X11UseForwarding Yes

change  /etc/sysconfig/Xserver to Xorg

but I'm still unable to run

ssh -X user@ip
apps
Can't open display:
Title: Re: X Server SSH (X11 Forwarding) Live CD
Post by: curaga on October 01, 2015, 02:17:16 AM
The X changes were unnecessary - the host doesn't even need to be running X, and the tcp listening is related to non-ssh X networking.

If you restarted your SSH server so it could use the new config, check its logs.
Title: Re: X Server SSH (X11 Forwarding) Live CD
Post by: limeblack on October 01, 2015, 10:08:28 PM
How do I restart the sever?  I've created a question with a bounty here
http://stackoverflow.com/q/32773774
Title: Re: X Server SSH (X11 Forwarding) Live CD
Post by: gerald_clark on October 02, 2015, 06:18:17 AM
t is not clear what machines you are ssh-ing from and to.
The machine you are ssh-ing to is the one that needs changes to the sshd_config file and the sshd restart.
How you restart the server depends on what version of Linux it is running.

The machine you are ssh-ing from is the one that needs X running.
Title: Re: X Server SSH (X11 Forwarding) Live CD
Post by: limeblack on October 02, 2015, 09:17:08 AM
I'm sshing from a remote machine and yes you are technically right X Server is referring to the remote machine, but I believe it is technically  true that both need some form of X running.

I know I'm running the right commands because the only thing different is the ip of debian vs the Tiny Core Linux ip address.
I'm doing something different with TinyCoreLinux.
Title: Re: X Server SSH (X11 Forwarding) Live CD
Post by: gerald_clark on October 02, 2015, 11:13:38 AM
Running ssh -X to C5 works.

It does not work with C6.
Title: Re: X Server SSH (X11 Forwarding) Live CD
Post by: limeblack on October 02, 2015, 01:04:31 PM
I'm getting the following error on TinyCore 5 even.

ssh_exchange_identification: read: Software caused connection abort

I cleared my ssh keys and I am still getting the error.
Title: Re: X Server SSH (X11 Forwarding) Live CD
Post by: limeblack on October 10, 2015, 02:43:07 PM
Does anyone have this working in any version of tiny core linux?