On Tuesday, July 10, 2007 6:28 AM, Greg Wooledge wrote:
>Sure it does.  Or at least, it can be made to do so.
>
>1) Set "PermitUserEnvironment yes" in sshd_config.
>2) Put "ENV=$HOME/.kshrc" in ~/.ssh/environment on the server.
>3) Put "barney=rubble" in ~/.kshrc on the server.
>4) Put your public key in ~/.ssh/authorized_keys on the server.
>
>Here's what I get:
>[...]

Thanks for the detailed reply. My problem is the $HOME is shared:
If I want to have "barney=rubble" for host1 and "barney=block" for
host2, and the $HOME/.ssh/environment and $HOME/.kshrc are shared
between host1 and host2, so I am facing what to put.

I don't know if $HOME/.ssh/rc can help.

Reply via email to