From owner-freebsd-questions Wed Jun 9 8:43:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from obie.softweyr.com (unknown [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id 78D6B15038; Wed, 9 Jun 1999 08:43:08 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.com (homer.softweyr.com [204.68.178.39]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id JAA06439; Wed, 9 Jun 1999 09:43:04 -0600 (MDT) (envelope-from wes@softweyr.com) Message-ID: <375E8B87.84A47C9D@softweyr.com> Date: Wed, 09 Jun 1999 09:43:03 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: hqy2446 Cc: freebsd-questions@FreeBSD.ORG, freebsd-security@FreeBSD.ORG Subject: Re: newbie question: ssh References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hqy2446 wrote: > > I have a newbie question regarding X connection forward by ssh. > > After I installed ssh-1.2.27 and ssh-2.0.13, I was unable to use 'X > connection forwarding' at certain servers. Now I tried this command: > > $ ssh -l [username] [remote host] xterm -display [my ip address]:0.0 No no no no! Watch: wes@homer$ echo $DISPLAY :0.0 wes@homer$ ssh freefall.cdrom.com Enter passphrase for RSA key 'wes@homer': ... bash-2.02$ echo $DISPLAY freefall.freebsd.org:12.0 bash-2.02$ /usr/X11R6/bin/xdpyinfo name of display: freefall.freebsd.org:12.0 version number: 11.0 vendor string: The XFree86 Project, Inc vendor release number: 3330 Homer is my laptop running FreeBSD. As you can see, when I login to freefall via ssh, a secure X proxy connection has already been setup for my by ssh. It will do this if it finds the $DISPLAY variable set on the client side. Use this connection and only this connection for secure transport. Your command should be: $ ssh -l [username] [remote host] xterm and nothing more. $ ssh -l username remotehost env will allow you to determine that the remote $DISPLAY is being set correctly. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message