Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Sun, 8 Aug 2004 13:45:56 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: how can I set $REMOTEHOST ( so I can set $DISPLAY with sshd w\X11 forwarding) In-Reply-To: <41154E0F.C0D8915F@dessent.net> Message-ID: References: <41150C47 DOT 6030900 AT alltel DOT net> <41154E0F DOT C0D8915F AT dessent DOT net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Sat, 7 Aug 2004, Brian Dessent wrote: > peter waltman wrote: > > > yeah. pretty much. I've set the "ForwardX11 yes" in the sshd_config > > file on the server I log into and I've also set it in the ssh_config > > with the client I'm using to log into it. > > > > piano{pwaltman}51: ssh -X grad107m > > pwaltman AT grad107m's password: > > Last login: Fri Aug 6 19:16:42 2004 from lin04.eecs.tufts.edu > > > > pwaltman AT GRAD107M ~ > > $ echo $DISPLAY > > 127.0.0.1:0 > > It could be that if DISPLAY is set before you run ssh -X then ssh won't > change it. Try unsetting DISPLAY first. This is wrong. "ssh -X/-Y" will not enable X11 forwarding *unless* DISPLAY is set in the local shell. > Also, make sure there's nothing in your profile/bashrc stuff on the > remote host that messes with DISPLAY. This, however, is sound advice. Try running ssh without the -X flag (or even with a -x flag) and see if DISPLAY is still set. > > if $?REMOTEHOST > > export DISPLAY=$REMOTEHOST:0.0 > > If you do this your X session is no longer tunneled through SSH, and > thus not secure. Also correct. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/