Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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
user@example.org's password:
--- MOTD of example.org skipped ---
bash-2.05$

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
user@example.org's password:
--- MOTD of example.org skipped ---
user@something.example.org ~$

Do you need help?X

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
"VijaySingh, Vishwa (EM, GECIS)" <Vishwa.VijaySingh@gecis.ge.com> wrote:

> Hi Everybody,

--

  • application/pgp-signature attachment: stored
Received on Fri Jul 4 19:03:31 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:03:00 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library