X forwarding over ssh -- how?

This is a discussion on X forwarding over ssh -- how? within the Linux Networking forums, part of the Linux Forums category; Hi, look at this: --------------- bob@nizo:~$ bob@nizo:~$ echo $DISPLAY :0.0 bob@nizo:~$ ssh -X 192.168.178.2 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-15-2005
Robert Latest
 
Posts: n/a
Default X forwarding over ssh -- how?

Hi,
look at this:

---------------

bob@nizo:~$
bob@nizo:~$ echo $DISPLAY
:0.0
bob@nizo:~$ ssh -X 192.168.178.2
Password:

Last login: Fri Jul 15 12:12:19 2005 from 192.168.178.3
bob@mitchell:~$ echo $DISPLAY

bob@mitchell:~$

---------------

This should say all. Incidentally the problem may lie with the setting of the
DISPLAY variable on the local host, because if I set it to anything other than
":0.0" no X application works. All of the following should be equivalent and
should work, but none does (the last one is the address assigned by the DHCP
server):

bob@nizo:~$ export DISPLAY=127.0.0.1:0.0
bob@nizo:~$ export DISPLAY=localhost:0.0
bob@nizo:~$ export DISPLAY=192.168.178.3:0.0

This is an out-of-the-box Debian Sarge installation, in case it matters.

Thanks,
robert
Reply With Quote
  #2 (permalink)  
Old 07-15-2005
Rage
 
Posts: n/a
Default Re: X forwarding over ssh -- how?

Robert Latest wrote:
> Hi,
> look at this:
>
> ---------------
>
> bob@nizo:~$
> bob@nizo:~$ echo $DISPLAY
> :0.0
> bob@nizo:~$ ssh -X 192.168.178.2
> Password:
>
> Last login: Fri Jul 15 12:12:19 2005 from 192.168.178.3
> bob@mitchell:~$ echo $DISPLAY
>
> bob@mitchell:~$
>
> ---------------
>
> This should say all. Incidentally the problem may lie with the setting of the
> DISPLAY variable on the local host, because if I set it to anything other than
> ":0.0" no X application works. All of the following should be equivalent and
> should work, but none does (the last one is the address assigned by the DHCP
> server):
>
> bob@nizo:~$ export DISPLAY=127.0.0.1:0.0
> bob@nizo:~$ export DISPLAY=localhost:0.0
> bob@nizo:~$ export DISPLAY=192.168.178.3:0.0
>
> This is an out-of-the-box Debian Sarge installation, in case it matters.
>
> Thanks,
> robert


You have to enable x forwarding at both ends check out
/etc/ssh/sshd.conf
/etc/ssh/ssh.conf
There are some options that need changed to yes.
They should be reasonable apparent.

Rage

--
***********************************
* *
* EuropeSwPatentFree *
* *
***********************************
Reply With Quote
  #3 (permalink)  
Old 07-15-2005
Paul Black
 
Posts: n/a
Default Re: X forwarding over ssh -- how?

Robert Latest wrote:
> Hi,
> look at this:
>
> ---------------
>
> bob@nizo:~$
> bob@nizo:~$ echo $DISPLAY
> :0.0
> bob@nizo:~$ ssh -X 192.168.178.2
> Password:
>
> Last login: Fri Jul 15 12:12:19 2005 from 192.168.178.3
> bob@mitchell:~$ echo $DISPLAY
>
> bob@mitchell:~$


As well as enabling X forwarding at the local end, you also need to do
it at the remote end. The remote sshd_config file should have a line like:
X11Forwarding yes


--
Paul Black mailto:paul.black@oxsemi.com
Oxford Semiconductor Ltd http://www.oxsemi.com
25 Milton Park, Abingdon, Tel: +44 (0) 1235 824 909
Oxfordshire. OX14 4SH Fax: +44 (0) 1235 821 141
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0