On Thu, Dec 21, 2006, Ilya Konstantinov wrote about "Re: starting an X 
application from remote computer":
> If you use the SSH X forwarding feature (which you are wholeheartedly
> recommended), you must make sure that your remote machine's sshd_config file
> allows X forwarding. In the OpenSSH installation, it's disabled by default.

You probably mean ssh_config, the client's configuration - *not* sshd_config
which is the server's configurations. X forwarding is disabled by default by
ssh *clients* because it is a security risk: basically it allows the server
(which you don't necessarily) to overtake your X windows, e.g., sniff your
keyboard and do other nasty stuff, which is great if you equally trust your
machine and the remote machine, but not as great if the remote machine isn't
something you trust.

Anyway, if you want to ask your client to do X forwarding, simply do
"ssh -X machine". You don't have to change any configration file.

> If you want to make sure the SSH X forwarding actually happens, you might
> consider running 'ssh' with the verbose option.

Or just try it, and see that on the remote machine you get a DISPLAY variable
which looks like "localhost:10.0" (yes, that's right - localhost, and some
large number as the display number). If DISPLAY is empty, then X forwarding
didn't work.

-- 
Nadav Har'El                        |    Thursday, Dec 21 2006, 30 Kislev 5767
[EMAIL PROTECTED]             |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |:(){ :|:&};: # DANGER: DO NOT run this,
http://nadav.harel.org.il           |unless you REALLY know what you're doing!

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to