opus
July 11th, 2003, 12:20
I think that is what it is called.

Here is a scenario:

I have a p120 with 16RAM, I also have a 2.4G with 512DDR and X86. From the 120, can I ssh into the 2.4 and run a gui application? I am just using the 120 to connect I guess but am using the resources of the 2.4...which is more capable. Also, can 2 or 3 of us be logged into the 2.4 using different ssh connections at the same time? That is if I had 3 seperate machines for them to use.

Do I make sense?

bsdjunkie
July 11th, 2003, 12:28
This will work fine for what you want to do.
Make sure to export your display correctly from the remote host and turn on X11 Forwarding in the ssh conf
its in /etc/ssh/ssh_config on openbsd.


export DISPLAY=x.x.x.x:0 for bash type shells
or
setenv DISPLAY x.x.x.x:0 for csh type shells

opus
July 11th, 2003, 12:39
Make sure to export your display correctly from the remote host Can you explain this...not sure I know what you mean.

# Host *
# ForwardAgent no
# ForwardX11 no
# RhostsAuthentication no
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# BatchMode no
# CheckHostIP no

And what of this must I change aside from 'ForwardX11"??

bsdjunkie
July 11th, 2003, 12:43
Make sure to export your display correctly from the remote host Can you explain this...not sure I know what you mean.

ok, if your remote machine is x.x.x.x and your local box is y.y.y.y
on y.y.y.y do the following:

xhost +x.x.x.x
ssh -l user x.x.x.x and login
export DISPLAY=y.y.y.y:0

all the gui programs you run will be pushed to y.y.y.y's screen.


All you should have to change is the Forwarding to yes.

opus
July 11th, 2003, 13:04
xhost: unable to open display""

Is what I get when I try to do it from a terminal (outside of X). Must I have X loaded on the P120 as well...I think I must....right? No way around it, is there? I was hoping to use the 120 as an access machine only, without having X running on it.


Forget the below...I figured it out

If I do it from this machine...to the 'server', while logged in X here, I get:


$ xhost +192.168.2.20
192.168.2.20 being added to access control list
$ ssh -l pete 192.168.2.20
[sorry...corrected this]
$ export DISPLAY=192.168.2.210
$ startxfce
/usr/X11R6/bin/startxfce: X server already running on display 192.168.2.210
xsetroot: unable to open display '192.168.2.210'
xset: unable to open display "192.168.2.210"
xfwm message (type main): Error = can't open display 192.168.2.210
$

Strog
July 11th, 2003, 15:52
I don't bother with xhost at all. I just login with ssh with X forwarding and it is all automatic. It works with all the linux installs I've tried and my freebsd installs right out of the box. I'd check OpenBSD or NetBSD right now but I don't have any installs of either with X at the moment.

ssh -X user@somehost

ssh is so versatile and there's a lot more you can do with it. Check out man ssh. I used to use xdmcp and go through all the hassles of setting that up. I really don't feel tempted to setup anymore.