» »

zaganjanje X programov iz ssh-ja

zaganjanje X programov iz ssh-ja

SodVina ::

Lep pozdrav,
rad bi se logiral s ssh-jem na oddaljen sistem in tam zagnal graficno aplikacijo. Pri sistemu knoppix to deluje cisto normalno, pri ostalih sistemih (Suse, redhat), pa napise unable to open x (nekaj v tem smislu). Kateri software oz. deamon moram namestiti, da bo to mozno delati?

hvala

napsy ::

Kolikor jaz to vem, je to nemogoce ker ssh omogoca samo dostop do konzole, na pa do x graficnega streznika. Lahko se malo poigras z VNC-jem.
"If you die, you die. But when you live you live. There is no time to waste."

BigWhale ::

$ man ssh
...

If the ForwardX11 variable is set to ``yes'' (or, see the description of
the -X and -x options described later) and the user is using X11 (the
DISPLAY environment variable is set), the connection to the X11 display
is automatically forwarded to the remote side in such a way that any X11
programs started from the shell (or command) will go through the
encrypted channel, and the connection to the real X server will be made
from the local machine. The user should not manually set DISPLAY. For­
warding of X11 connections can be configured on the command line or in
configuration files.

The DISPLAY value set by ssh will point to the server machine, but with a
display number greater than zero. This is normal, and happens because
ssh creates a ``proxy'' X server on the server machine for forwarding the
connections over the encrypted channel.

ssh will also automatically set up Xauthority data on the server machine.
For this purpose, it will generate a random authorization cookie, store
it in Xauthority on the server, and verify that any forwarded connections
carry this cookie and replace it by the real cookie when the connection
is opened. The real authentication cookie is never sent to the server
machine (and no cookies are sent in the plain).

If the user is using an authentication agent, the connection to the agent
is automatically forwarded to the remote side unless disabled on the com­
mand line or in a configuration file.

Forwarding of arbitrary TCP/IP connections over the secure channel can be
specified either on the command line or in a configuration file. One
possible application of TCP/IP forwarding is a secure connection to an
electronic purse; another is going through firewalls.

...
$

Poglej sshd.conf in ssh.conf na remote in local sistemu... *sigh*

SodVina ::

v redu, bom zadevo malo nastudiral, ko bo cas, mislil sem, da se je kdo ze ukvarjal s tem, pa bi mi takole z glave vedel povedati. Na remote sistemu najbrz ni treba nic nastavljati, ker do njega dostopam z istega ip-ja le z razlicnih sistemov, pa se zadeva kaze drugace. V knoppix-u se logiram s ssh-jem, potem pa tam napisem npr. mozilla, pa se mi lepo odpre mozilla, ki je namescena na remote sistemu. prav tako sem lahko zaganjal kde kontrol center, yast, itd. no skratka vse graficne aplikacije. V bistvu sem imel pravi remote control. pac bo treba pogledat konfiguracijsko datoteko na knoppixu in jo primerjat z drugimi.

lp

simon ::

uporabi -X stikalo pri ssh-ju tj. ssh -X host

BigWhale ::

AFAIK, to ne dela, ce server tega ne podpira...

simon ::

ja, lahko pa da server podpira (v /etc/ssh/sshd_config ima "X11Forwarding yes") nima pa na klientu to privzeto nastavljeno (/etc/ssh/ssh_config) kar je v nekaterih starejsih distribucijah.

SodVina ::

ssh -X deluje

hvala


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

OpenSSH client bug CVE-0216-0778

Oddelek: Informacijska varnost
132400 (2108) jype
»

izkusnje z rsync?

Oddelek: Programska oprema
222072 (1453) dëych
»

Zaganjanje grafičnega programa na namizju trenutno prijavljenega lokalnega uporabnika

Oddelek: Operacijski sistemi
7875 (736) b
»

Skripte (strani: 1 2 )

Oddelek: Programiranje
508320 (6183) Microsoft
»

remote administration linux/unix mašin preko xserverja

Oddelek: Operacijski sistemi
231500 (1343) Zzzzzzz

Več podobnih tem