Re: X Forwarding via SSH
hi ya
assuming a bash shell...
westek[westk]:/home/westk> export DISPLAY=0.0
westek[westk]:/home/westk> gqview &
#
# should work locally on the machine called westek
#
if you are sitting on a machine called foo and ssh into westek
foo:/home/westk> xhost +westek
westek[westk]:/home/westk> export DISPLAY=foo:0.0
westek[westk]:/home/westk> gqview &
#
# should disply on the machine foo
#
#
# when done...
foo:/home/westk> xhost -westek
#
# to go from westek to foo
#
westek[westk]:/home/westk> ssh -X -l westk foo
c ya
alvin
-- whether you wanna do this or not is a separate issue
- slow displays
- dont forget to use ssh forwarding...
- other issues ??
On Sat, 6 Apr 2002, Kent West wrote:
> Jeffrey W. Baker wrote:
>
> >On Sat, 2002-04-06 at 17:40, Kent West wrote:
> >
> >>So, for some reason, it seems that my Sid box that I'm ssh'ing into
> >>isn't setting my DISPLAY. Why not?
> >>
> >
> >On the box you are SSHing to, check /etc/ssh/sshd_config for lines like:
> >
> >X11Forwarding yes
> >X11DisplayOffset 10
> >
> >And on the machine you are SSHing from, check /etc/ssh/ssh_config for
> >
> >ForwardX11 yes
> >
> >Check ssh(1) and sshd(8). Now, about the stupid mismatch between these
> >two directives, I guess you should mail todd@openbsd.org
> >
> >-jwb
> >
> Well, that's interesting.
>
> I made both setting as you indicated above; now when I ssh into westek,
> I get this:
>
> --------------
> westek[westk]:/home/westk> echo $DISPLAY
> westek:10.0
>
> --------------
> westek[westk]:/home/westk> gqview &
> [1] 10168
>
> --------------
> westek[westk]:/home/westk>
> Gtk-WARNING **: cannot open display: westek:10.0
>
> [1]+ Exit 1 gqview
>
>
> So, progress has been made. My DISPLAY env. var. is now being set. But
> it still doesn't work.
>
> But what I find interesting is that from what I've understood from
> everything I've read (including the man page for ssh), the command line
> option -X overrides the config files. But this experiment seems to
> indicate that to not be the case.
>
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: