Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: ssh and DISPLAY ?


  • Subject: Re: lug-bg: ssh and DISPLAY ?
  • From: raptor@email.domain.hidden (raptor)
  • Date: Wed, 4 Jun 2003 13:33:10 +0300


XForward si e razresheno, no kato se logna w remote mashinata, DISPLAY ne e setnat waobshte..
Problema e move bi zashtoto X servera e startiran pod drug account !!?
Ima li nachin w takaw sluchai pak da si pusna programa prez "myaccount"

local ---------ssh------> remote (userX has started X, not myaccount)

#ssh myaccount_at_remote
#echo $DISPLAY
                                                                                                                                                                
#nt
                                                                                                                                                                
(nt:17719): Gtk-WARNING **: cannot open display:
#

<p><p><p><p><em class="quotelev1">> -----BEGIN PGP SIGNED MESSAGE-----
<em class="quotelev1">> Hash: SHA1
<em class="quotelev1">> 
<em class="quotelev1">> On Wednesday 04 June 2003 11:05, raptor wrote:
<em class="quotelev2">> > na seminara Georgi Chorbadviiski,
<em class="quotelev2">> >
<em class="quotelev2">> > zagatna za ssh i XForwarding.. ta waprosa mi e, kak po princip trqbwa da se
<em class="quotelev2">> > setne DISPLAY promenliwata taka che kato se logna w remote mashinata da
<em class="quotelev2">> > moga da startiram apps.. Kade se incializira tazi promenliwa...bash_rc,
<em class="quotelev2">> > /etc/X11/..?
<em class="quotelev1">> 
<em class="quotelev1">> Ïðåäíîòî ìàé íå áåøå ìíîãî óäà÷åí îòãîâîð, ñúæàëÿâàì.
<em class="quotelev1">> 
<em class="quotelev1">> man ssh
<em class="quotelev1">> 
<em class="quotelev1">> X11 and TCP forwarding
<em class="quotelev1">>      If the ForwardX11 variable is set to ?yes? (or, see the description of
<em class="quotelev1">>      the -X and -x options described later) and the user is using X11 (the
<em class="quotelev1">>      DISPLAY environment variable is set), the connection to the X11 display
<em class="quotelev1">>      is automatically forwarded to the remote side in such a way that any X11
<em class="quotelev1">>      programs started from the shell (or command) will go through the
<em class="quotelev1">>      encrypted channel, and the connection to the real X server will be made
<em class="quotelev1">>      from the local machine.  The user should not manually set DISPLAY.  For-
<em class="quotelev1">>      warding of X11 connections can be configured on the command line or in
<em class="quotelev1">>      configuration files.
<em class="quotelev1">>  
<em class="quotelev1">>      The DISPLAY value set by ssh will point to the server machine, but with a
<em class="quotelev1">>      display number greater than zero.  This is normal, and happens because
<em class="quotelev1">>      ssh creates a ?proxy? X server on the server machine for forwarding the
<em class="quotelev1">>      connections over the encrypted channel.
<em class="quotelev1">>  
<em class="quotelev1">>      ssh will also automatically set up Xauthority data on the server machine.
<em class="quotelev1">>      For this purpose, it will generate a random authorization cookie, store
<em class="quotelev1">>      it in Xauthority on the server, and verify that any forwarded connections
<em class="quotelev1">>      carry this cookie and replace it by the real cookie when the connection
<em class="quotelev1">>      is opened.  The real authentication cookie is never sent to the server
<em class="quotelev1">>      machine (and no cookies are sent in the plain).
<em class="quotelev1">> 
<em class="quotelev1">>      If the ForwardAgent variable is set to ?yes? (or, see the description of
<em class="quotelev1">>      the -A and -a options described later) and the user is using an authenti-
<em class="quotelev1">>      cation agent, the connection to the agent is automatically forwarded to
<em class="quotelev1">>      the remote side.
<em class="quotelev1">>  
<em class="quotelev1">>      Forwarding of arbitrary TCP/IP connections over the secure channel can be
<em class="quotelev1">>      specified either on the command line or in a configuration file.  One
<em class="quotelev1">>      possible application of TCP/IP forwarding is a secure connection to an
<em class="quotelev1">>      electronic purse; another is going through firewalls.
<em class="quotelev1">> 
<em class="quotelev1">> Ïðåãëåäàé sshd.conf íà ìàøèíàòà îò êîÿòî èñêàø äà ïóñêàø ïðèëîæåíèÿ è ñúîòâåòíèòå ssh.conf íà êëèåíòà çà âåðíèòå îïöèè, ðåôðåø íà äåìîíà àêî ïðîìåíèø íåùî è áè òðÿáâàëî äà ðàáîòè.
<em class="quotelev1">> - -- 
<em class="quotelev1">> Take care
<em class="quotelev1">> 
<em class="quotelev1">> 
<em class="quotelev1">> Boris Jordanov (borj) <borj_at_gmx.co.uk>
<em class="quotelev1">> ICQ 10751645
<em class="quotelev1">> 
<em class="quotelev1">> PGP-key-fingerprint:------------------------------
<em class="quotelev1">> CB23 8B52 5FBC F36A 1B61  F1ED 2831 E52D AAFF 7B08
<em class="quotelev1">> - --------------------------------------------------
<em class="quotelev1">> Public-key:---------------------------------------
<em class="quotelev1">> http://borj.freeshell.org/borj.asc
<em class="quotelev1">> - --------------------------------------------------
<em class="quotelev1">> To err is human...
<em class="quotelev1">> to really foul up requires the root password.
<em class="quotelev1">> -----BEGIN PGP SIGNATURE-----
<em class="quotelev1">> Version: GnuPG v1.2.1 (GNU/Linux)
<em class="quotelev1">> 
<em class="quotelev1">> iD8DBQE+3boTKDHlLar/ewgRAmMJAJ4+0mWuDt0hqqQsiChs2qYZnGs32gCgufiY
<em class="quotelev1">> oM+A/TWI59+VsGOtQB/qnQw=
<em class="quotelev1">> =4H7i
<em class="quotelev1">> -----END PGP SIGNATURE-----
<em class="quotelev1">> 
<em class="quotelev1">> ============================================================================
<em class="quotelev1">> A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev1">> http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
<em class="quotelev1">> To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev1">> ============================================================================
<em class="quotelev1">> 
============================================================================
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
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.