[TriLUG] X sessions through SSH

Chris Hedemark chris at yonderway.com
Wed Nov 6 10:58:16 EST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Wednesday, November 6, 2002, at 10:48 AM, Henryk M. Kowalski wrote:

> I'm confused about a couple of points re: secure tunneling.
>
> Scenario 1:
> I'm running X locally.
> I start xterm locally and SSH to remote host.
> - So far the connection should be secure, i.e. everything typed in that
> xterm window is encrypted.
>
> What happens if I start a detached terminal FROM the _original_ SSH
> terminal, i.e. I run 'xterm &' _on_ the remote host with the display
> automatically showing up on my _local_ X server?

if you do an "ssh --help" you'll see that X11 connection forwarding is 
not the default with the ssh client.  If you ssh in with a "-X" it will 
enable connection forwarding.  With "-x" this explicitly states you 
don't want X11 connection forwarding.

> Scenario 2: (Very similar)
> I'm running a plain-vanilla X session locally and I just want this 
> local
> machine to be a display (terminal) for a remote session, so I leave off
> any window manager.
>
> I have xterm up (locally), and SSH to remote, then run 'startx' or
> equivalent _on the remote machine_ to get my window manager.

Actually you don't want to do that (startx).  You want to run the 
startup script for your window manager.

Chris Hedemark
Hillsborough, NC
http://yonderway.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9yTwdYPuF4Zq9lvYRAj/fAJoCblXt9t/017H4pqdo5v8/e9Hf4gCdFACK
157eJlg2Fkf0wL6wDb1oYkk=
=vW0D
-----END PGP SIGNATURE-----




More information about the TriLUG mailing list