🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #351

Re: running X remotely via SSH

#351
From: David Eastcott
Date: Wed, 21 Mar 2001 06:39
60 lines
3564 bytes
change '.bashrc' in your home directory from:

        export XAUTHORITY=$HOME/.Xauthority

to 

        [ -z $XAUTHORITY ] && export XAUTHORITY=$HOME/.Xauthority

Solved my problems.

Dave


Kevin Rutten wrote:

> One bug worth noting, Mandrake 7.* appears to stop the XAUTHORITY
> enviromental variable.  I managed to get ssh-x11 working by turning on
> X11 in the /etc/ssh/sshd_config, commenting out all the lines in
> /etc/profiles.d/xhost.*, changeing my shell to tcsh, then using
> Secure-CRT to login.  The Mindspring JavaSSh is also supposed to work,
> but I haven tested it.
> 
> If you use BASH as your shell it clobbers the XAUTHORITY variable and
> nothing will run.   Fun to debug.  sshd puts a cookie file in /tmp and
> set the XAUTHORITY variable to point to it.  If X11 isn't working, try
> setting this manually.
> 
> If anyone knows how to preserve XAUTHORITY under bash, I'd love to find
> out how, although I do prefer tcsh myself.
> 
> Good Luck.
> 
> Kevin
> 
> NO-jkstark-SPAM@freenet.nether.net wrote:
>> 
>> In comp.os.linux.networking Shane <jagger@bigpond.net.au> wrote:
>> 
>> > Hi all,
>> 
>> >     Just wandering, if I have X and SSH on my linux box, and I want to
>> > secure my X connections, how do I go about this? Haven't had much luck
>> > finding info.  And if so, how do I set up my windows client (running
>> > say, XWin) to connect and use X from myl inux box?
>> 
>> Basically, you want to turn on X tunnelling...  Most SSH clients for
>> win have this option somewhere...  That will usually set the display
>> env. on the remote host automatically - if you have the X server
>> running on the PC before you SSH over..  Works like a charm for me..
>> All you have to do on the far end is to start the X apps - or with
>> certain X servers, you can do a ssh connect automatically and start
>> an app.  (X-Win32 comes to mind...)
>> 
>> Kris
>> 
>> > Thanks for any suggestions/help..
>> 
>> > regards,
>> > Shane.
> 
Technical Details
Message-ID: <B0Yt6.27577$5P1.358814@news1.rdc1.ab.home.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!204.94.211.44!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ab.home.com.POSTED!not-for-mail
References: <FMBs6.5706$992.35121@news-server.bigpond.net.au> <GMGs6.3269$ws2.197480@ord-read.news.verio.net> <3AB7CD30.B6F72626@texondevices.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8a83,fde075d873849b31
X-Google-Attributes: gidf8a83,public
X-Google-Thread: 10669a,fde075d873849b31
X-Google-Attributes: gid10669a,public
X-Google-Thread: 100c5f,fde075d873849b31
X-Google-Attributes: gid100c5f,public
X-Google-Thread: 100b1f,fde075d873849b31
X-Google-Attributes: gid100b1f,public
X-Google-Thread: 102983,fde075d873849b31
X-Google-Attributes: gid102983,public
X-Google-ArrivalTime: 2001-03-20 22:45:24 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!204.94.211.44!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ab.home.com.POSTED!not-for-mail
From: David Eastcott <david.eastcott@home.com>
Subject: Re: running X remotely via SSH
Newsgroups: alt.linux,alt.os.linux.mandrake,aus.computers.linux,comp.os.linux.help,comp.os.linux.networking
Followup-To: alt.linux
References: <FMBs6.5706$992.35121@news-server.bigpond.net.au> <GMGs6.3269$ws2.197480@ord-read.news.verio.net> <3AB7CD30.B6F72626@texondevices.com>
Lines: 61
User-Agent: KNode/0.4
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <B0Yt6.27577$5P1.358814@news1.rdc1.ab.home.com>
Date: Wed, 21 Mar 2001 06:39:29 GMT
NNTP-Posting-Host: 24.64.8.213
X-Complaints-To: abuse@home.net
X-Trace: news1.rdc1.ab.home.com 985156769 24.64.8.213 (Tue, 20 Mar 2001 22:39:29 PST)
NNTP-Posting-Date: Tue, 20 Mar 2001 22:39:29 PST
Organization: Excite@Home - The Leader in Broadband http://home.com/faster