You are not logged in.

#1 2007-07-26 19:30:40

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Allowing other users to connect via SSH and using X apps.

My computer starts ssh as daemon and I can connect from other workstations, but I can't use ssh -X to use X apps.
I usually do not need it, but when I do it is pretty annoying.

I can connect to the university computer and use X apps, but I can't connect from uni to home... :S

Offline

#2 2007-07-26 21:06:53

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Allowing other users to connect via SSH and using X apps.

You'll have to change the configuration option (I forget exactly what it's called right now since I'm at work) for AllowXForwarding, and set that to yes and restart the ssh daemon.  The configuration file should be /etc/ssh/sshd_config IIRC

Offline

#3 2007-07-29 01:47:29

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Allowing other users to connect via SSH and using X apps.

I just did this on the machine you have sshed into you want to set the DISPLAY variable to 192.168.1.5:0

So if using bash it should be DISPLAY=192.168.1.5:0

The ip address being the address of your computer that you trying to run the X apps on.

I also believe you have to run xhost +

So to sum it up:
xhost +
DISPLAY=192.168.1.5:0
ssh -X ezzetabi@remotemachine


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

Board footer

Powered by FluxBB