Networking Forums

Networking Forums > Computer Networking > Linux Networking > X forwarding over ssh -- how?

Reply
Thread Tools Display Modes

X forwarding over ssh -- how?

 
 
Robert Latest
Guest
Posts: n/a

 
      07-15-2005, 10:21 AM
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
 
 
 
 
Rage
Guest
Posts: n/a

 
      07-15-2005, 10:40 AM
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
 
Paul Black
Guest
Posts: n/a

 
      07-15-2005, 10:53 AM
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(E-Mail Removed)
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ip forwarding InuY4sha Linux Networking 9 01-08-2008 10:16 AM
IP forwarding without NAT balzano_1@yahoo.com Linux Networking 2 09-17-2007 07:25 AM
IP forwarding manoj Linux Networking 16 02-28-2006 10:12 PM
IP forwarding on NT4 Andy Williams Windows Networking 11 12-22-2004 02:33 PM
ssh/scp forwarding ??? Ben Linux Networking 11 09-29-2004 08:51 PM



1 2 3 4 5 6 7 8 9 10 11