Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH X11-forward to chroot of lan computer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
xevix
Apprentice
Apprentice


Joined: 02 Oct 2004
Posts: 284
Location: Cali, USA

PostPosted: Wed Aug 17, 2005 2:44 am    Post subject: SSH X11-forward to chroot of lan computer Reply with quote

Did the subject confuse you enough? OK here we go. I have two gentoo computers in a lan, call them Cat and Dog. Dog has a 32-bit chroot environment which has eclipse installed on it, and Cat wants to be able to run it locally using ssh's X11 forwarding. What do I have to do to make this work?

I've tried running the ssh daemon from Dog's 64-bit system, turning the usual forwarding requirements on. I then, on dog, typed "xhost local:localhost" as recommended by the 32-bit chroot guide to run apps using 64-bit's X11. Next, I ssh'ed from Cat to Dog with X11 forwarding, and chrooted into the 32-bit environment, and attempted to run eclipse. Here's what I got:

Code:
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 57375
debug1: channel 1: new [x11]
debug1: confirm x11
X11 connection rejected because of wrong authentication.
debug1: channel 1: free: x11, nchannels 2
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 57376
debug1: channel 1: new [x11]
debug1: confirm x11
X11 connection rejected because of wrong authentication.
debug1: channel 1: free: x11, nchannels 2
The application '<unknown>' lost its connection to the display localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 57377
debug1: channel 1: new [x11]
debug1: confirm x11
X11 connection rejected because of wrong authentication.
debug1: channel 1: free: x11, nchannels 2
The application 'eclipse-gtk' lost its connection to the display localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.

_________________
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux 2x2.2 ghz
nVidia GeForce 8800 GTS 320Mb
250 gb SATA hd
2gb pc-3200 DDR
Back to top
View user's profile Send private message
flakzeus
Apprentice
Apprentice


Joined: 26 May 2004
Posts: 157

PostPosted: Wed Aug 17, 2005 3:49 am    Post subject: Reply with quote

The easiest that I have found to do ssh X11 forwarding is like this:
1) make sure that in the ssh_config file that ForwardX11 is on
2) use ssh -XCY then, just run your command.

See if that works for ya.
_________________
"I'm not a super genius...or are I?" - Homer Simpson
Back to top
View user's profile Send private message
xevix
Apprentice
Apprentice


Joined: 02 Oct 2004
Posts: 284
Location: Cali, USA

PostPosted: Wed Aug 17, 2005 4:16 am    Post subject: Reply with quote

Thanks for the reply. I should have mentioned I'm aware how to do normal X11 forwarding, but I guess you skipped over quickly when reading, this is a strange situation. My temporary solution to this is to, from Dog, stop the 64-bit sshd and start the sshd from within the 32-bit chroot. That appears to work, but I really wish that I could ssh in, go into the chroot and then run the requested command, but oh well.
_________________
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ AuthenticAMD GNU/Linux 2x2.2 ghz
nVidia GeForce 8800 GTS 320Mb
250 gb SATA hd
2gb pc-3200 DDR
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum