WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: X Server SSH (X11 Forwarding) Live CD  (Read 4288 times)

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
X Server SSH (X11 Forwarding) Live CD
« on: September 30, 2015, 09:30:48 PM »
I'm booting TCL 6 from a live cd/iso.
Following these guides: http://goo.gl/p1OaP6,http://goo.gl/n5jd2B, http://goo.gl/FYtD67, http://goo.gl/LsjHu3, 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:
« Last Edit: September 30, 2015, 09:51:41 PM by limeblack »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: X Server SSH (X11 Forwarding) Live CD
« Reply #1 on: October 01, 2015, 05: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.
The only barriers that can stop you are the ones you create yourself.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: X Server SSH (X11 Forwarding) Live CD
« Reply #2 on: October 02, 2015, 01:08:28 AM »
How do I restart the sever?  I've created a question with a bounty here
http://stackoverflow.com/q/32773774

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: X Server SSH (X11 Forwarding) Live CD
« Reply #3 on: October 02, 2015, 09: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.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: X Server SSH (X11 Forwarding) Live CD
« Reply #4 on: October 02, 2015, 12:17:08 PM »
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.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: X Server SSH (X11 Forwarding) Live CD
« Reply #5 on: October 02, 2015, 02:13:38 PM »
Running ssh -X to C5 works.

It does not work with C6.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: X Server SSH (X11 Forwarding) Live CD
« Reply #6 on: October 02, 2015, 04: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.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: X Server SSH (X11 Forwarding) Live CD
« Reply #7 on: October 10, 2015, 05:43:07 PM »
Does anyone have this working in any version of tiny core linux?