|
|||||||||||
|
Re: Does SSH invoke .profile to the user to which it makes a connecti on
From: Vladimir Belyashki <spiteos(at)myrealbox.com>
Date: Thu Jul 03 2003 - 20:15:20 EDT SSH does invoke the user's .profile file. A simple test with the bash shell prompt serves as an example:
user@localhost$ ssh example.org
We're now logged on to the semote system. Edit our user .profile and add a line like this: PS1="\u@\H \w\\$ "; export PS1 save the file and logout. And then again log on to the remote system:
user@localhost$ ssh example.org
You see the prompt change invoked by the PS1 variable that we set in our .profile on the remote system. Note also that there is no .bashrc file in our home directory, where the PS1 variable would normally belong, so we're certain it's read from ~/.profile.
On Thu, 3 Jul 2003 11:51:54 -0400
--
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:03:00 EDT |
||||||||||
|
|||||||||||