Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Environment Settings |
|---|---|
| Date: | Wed, 11 Jul 2007 08:48:08 -0400 |
On Tue, Jul 10, 2007 at 11:29:40AM -0600, Jialing Liang wrote:
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.
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
Now we're back to what I said in the very first reply I made in this
thread.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | server-side delays, Yakov Lerner |
|---|---|
| Next by Date: | RE: Environment Settings, Jialing Liang |
| Previous by Thread: | RE: Environment Settings, Jialing Liang |
| Next by Thread: | RE: Environment Settings, Jialing Liang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |