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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 * * * *********************************** |
|
|||
|
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 |