Date: Wed, 09 Jun 1999 09:43:03 -0600 From: Wes Peters <wes@softweyr.com> To: hqy2446 <hqy2446@is2.nyu.edu> Cc: freebsd-questions@FreeBSD.ORG, freebsd-security@FreeBSD.ORG Subject: Re: newbie question: ssh Message-ID: <375E8B87.84A47C9D@softweyr.com> References: <Pine.OSF.3.95.990608025653.13286A-100000@is2.nyu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?375E8B87.84A47C9D>