Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Re-establish X11 forwarding after upgrade' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Re-establish X11 forwarding after upgrade
Authored by: MattHaffner on Jan 30, '04 04:34:19PM

You don't need the '-X' if you set this parameter to 'yes'. That's the point of it actually ;) Instead, if you want to *not* forward for a particular host, you can use '-x' (lowercase) if you've set the global flag.

And, as another poster has already pointed out, it's probably a better idea just to use ~/.ssh/config . That way, future upgrades/fixes won't clobber your changes. Many unix-y programs work this way and it's good to start taking advantage of the separation of the user and system space that OS X gives you whenever you can, even if you are the sole user on the machine.



[ Reply to This | # ]
10.3: Re-establish X11 forwarding after upgrade
Authored by: The Gonif on Jan 31, '04 02:42:08PM

Thanks for the tips!

If you don't already have a ~/.ssh/config file and have to create one, do you base it on the entire /etc/ssh_config file, or can ~/.ssh/config just contain the non-default options?

Also, is there a ~/.sshd/config file?



[ Reply to This | # ]
10.3: Re-establish X11 forwarding after upgrade
Authored by: MattHaffner on Feb 02, '04 12:55:10AM

No, you don't need to copy the system-wide file. Your options will override any in the system file. And, any command line options you specify override will override both files.

There is no .ssh/sshd_config or such. Those options really do belong to the system and don't make sense for a per-user configuration. They contain a lot of restrictions on how ssh connections can occur and what they can do. You wouldn't want a user to be able to override those values. There are a few useful files you can put in the .ssh directory of the destination machine that will affect incoming sessions like .ssh/environment for automatically setting environment variables and .ssh/rc for automatically running a script on your ssh login.

Session-based ssh variables need to be set in the .ssh/config file of the machine you're ssh-ing from. You can restrict a set of options for a particular destination host (and have different ones for different hosts) by using the 'Host' keyword on a line in your config file.

More help can be found in:

man ssh_config
man sshd (see the FILES section for info about the environment & rc files)

from a Terminal session.



[ Reply to This | # ]