Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X Server and Client on different Computers. How?
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
Lonely-Star
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2003
Posts: 82

PostPosted: Tue Sep 16, 2003 12:46 pm    Post subject: X Server and Client on different Computers. How? Reply with quote

Hi,
I want to start an X Server on one Computer and connect to it form another Computer using ssh X tunneling. I need this, because I want to run X-Programms on the first Computer without having any access to it, only ssh.
I have searched the web, maybe I have used wrong search terms, but I did not find anything.
Anybody any help?
Thanks!
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Tue Sep 16, 2003 2:22 pm    Post subject: Reply with quote

if you want to keep them running use vncserver with vncclient ( you can tunnel them through ssh)

if its ok otherwise, u can just use ssh -X somehost , then start normal X programms there (i.e. xload). Be sure that X11Forwarding is not disabled on the server side (in the /etc/ssh/sshd_config)
Back to top
View user's profile Send private message
grimshaw
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2003
Posts: 101
Location: Greensboro, NC 27403, USA, Earth

PostPosted: Tue Sep 16, 2003 2:36 pm    Post subject: Reply with quote

The process is fairly simple and as mentioned you must have a few configuration options already set.

See if you are already set up and dont't need to change configs:

<on client> xhost +xserverip (replace with the real ip or hostname)
<on client> ssh -X user@xserver.ip.com

See if an xterminal loads for you. If it does, you are set, go nuts. If not, become root and edit: /etc/ssh/sshd_config. Delete the hashes (comments) for these lines:

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

restart the sshd on the xserver.

logout of your ssh session.

log back in again

<on client> ssh -X user@xserver.ip.com
<on server> xterm

see if the xterminal loads on your local machine.

If this doesn't work, report back with errors. You might have tcpwrappersor something else these instructions don't address.

- John
_________________
All that is necessary for the triumph of evil is that good men do nothing.
-- Edmund Burke (1729-1797)
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