[PLUG] ssh and X forwarding

Grish grishnav at egosurf.net
Sun Dec 7 12:20:03 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Rich Shepard wrote:

| Am I correct in assuming that if X forwarding is set to "yes" in
| /etc/ssh_config and /etc/sshd_config, then it's done automatically?
|
No. You also need to specify -X on the command line:

ssh -X remote_host.

| That is, an X app running on the server is displayed in X on the
| client?


Let's use the terms "remote host" and "local host" - client and server
is too confusing when talking X, because remember, the server runs on
the "client," and the clients are the programs running on the "server" ;)

The application runs on the remote host (what you called the server),
and connects to the X server (what you called the client) on the local
host which draws the client's (in this case, by "client" I mean an X
client - the piece of software running, be it Mozilla or GAIM)
information to the display.

SSH should set up the DISPLAY environment variable on the remote host
for you, so that the client (again, software) knows where to connect.
That port will, of course, be forwarded to X running on the local
host. SSH will also take the liberty of setting up your .xauth file so
that the client (software) is allowed to access the server (X server
on local host).

|
| I'm wondering if this would be the most parsimonious way for my
| fiancee to read and compose mail from her laptop. Easier than me
| trying to learn how to properly set up an IMAP server for her use.


IMAP isn't hard to set up. If even I can figure it out, it should be
cake for anyone else.

Besides, X isn't too great if you end up in a situation where you're
stuck on a modem or something... (sorry, I can't remember if that was
one of the criteria on your original email regarding this question.)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQE/04sdVo//RA50KO0RAjZdAJ9xYdXYu6q7DwCQysVI8ZHxXSc9vACghNe7
SHmT8O72kGfSt6+c9A1Hq5A=
=Sen3
-----END PGP SIGNATURE-----






More information about the PLUG mailing list