Romeo Ninov wrote:
Peter Zyumbilev wrote:

Kkav e problema da si stenesh:
export DISPLAY=ip:0
xhost remote-host-ip

Tova ot RH manuala:

display=IP:0
This command allows remote display forwarding. In this command, IP
should be replaced with the IP address of the system you want the
display to appear on.

On the system you want the display to appear on, you must execute the
command xhost +remotehostname, where remotehostname is the name of the
host you are running the original display from. Using the command xhost
+remotehostname limits access to the remote display terminal and does
not allow access from anyone or any system not specifically authorized
for remote access.
Pozdravi,
BIVOL

export DISPLAY=localhost:0.0 или на IP-то на което слуша X-a

На сървъра ssh daemona тряабва да му е разрешен X forwarding и да има xauth инсталиран (идва с X). Клиента, когато се свързва трябва да си поиска X Forwarding (става с опция -X или в конфигурационният файл ssh_config)

С други думи:
  В /etc/ssh/sshd_config (на сървъра)

X11Forwarding yes

стандартно е

#X11Forwarding no


Клиента:


[EMAIL PROTECTED]:~$ ssh -X server
Last login: Wed Jun  4 13:56:14 2003
Linux 2.4.19-ck3.

[EMAIL PROTECTED]:~$ echo $DISPLAY
localhost:10.0


Ако не искаш всеки път да използваш -X в /etc/ssh/ssh_config или в ~/.ssh/config сложи тези редове

Host *
  ForwardX11 yes


Целият проблем, които срещаш е поради това, че стандартно X forwarding не е разрешен в sshd сървъра. Просто го разреши рестартирай сървъра и си готов.


-- Georgi Chorbadzhiyski http://georgi.unixsol.org/

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
  • ... raptor
    • ... Борис Йорданов
    • ... Борис Йорданов
      • ... raptor
        • ... Peter Zyumbilev
          • ... Борис Йорданов
          • ... Romeo Ninov
            • Georgi Chorbadzhiyski

Reply via email to