RE: Environment Settings
- From: "Jialing Liang" <Jialing.Liang@xxxxxxx>
- Date: Wed, 11 Jul 2007 13:32:16 -0600
On Wednesday, July 11, 2007 6:48 AM, Greg Wooledge wrote:
1) Set "PermitUserEnvironment yes" in sshd_config.
2) Put "ENV=$HOME/.kshrc" in ~/.ssh/environment on the server.
3) Put your public key in ~/.ssh/authorized_keys on the server.
4) In ~/.kshrc on the server, put:
case $(hostname) in
host1) barney=rubble;;
host2) barney=block;;
esac
Yes, that's the hint! It works.
In my environment, the 'ENV=$HOME/.kshrc' is critical, otherwise it does
not work.
Thanks again for your time and guide.
Regards,
Jialing Liang
Jialing.liang@xxxxxxx
- References:
- Re: Environment Settings
- From: Greg Wooledge
- Re: Environment Settings
- Prev by Date: Re: Environment Settings
- Next by Date: Re: GSSAPI MIC check
- Previous by thread: Re: Environment Settings
- Next by thread: authorized_keys options for password access ??
- Index(es):
Relevant Pages
|