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 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 | # ]