path environment variables and ssh
Ted Pavlic
ted at tedpavlic.com
Thu May 8 12:24:33 CDT 2008
>> OH, and don't forget to make sure your /etc/ssh/sshd_config has the line:
That was a typo. I didn't mean to type the "/ssh/" part.
>> PermitUserEnvironment yes
>>
>> Otherwise I don't think that .ssh/environment will get set. Your system
>> administrator should be able to set that configuration flag for you (it
>> doesn't seem like much of a security "hole").
>
> There is no /etc/ssh/sshd_config. There is /etc/sshd_config and
> /private/etc/sshd_config, both of which have #PermitUserEnvironment no.
> Any idea which of these should be changed?
I believe in (at least) OS/X 10.4 and OS/X 10.5, /etc is just a symlink
to /private/etc. So, the file is the same.
Turn that on in one (and it will automatically turn on in the other) and
restart your sshd server. I *think* that should let you get up and
running using ~/.ssh/environment.
(NOTE: I *THINK* there's a system wide /etc/environment that can be used
as well, but the ssh man page only references ~/.ssh/environment (and a
"strings" of sshd only shows the per-user environment file too))
--Ted
--
Ted Pavlic <ted at tedpavlic.com>
More information about the Mercurial
mailing list