LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ssh remote login - how to source .bashrc automatically (https://www.linuxquestions.org/questions/linux-general-1/ssh-remote-login-how-to-source-bashrc-automatically-347516/)

newsgroupie2003 07-27-2005 11:50 PM

ssh remote login - how to source .bashrc automatically
 
Hi,
How does one control if .bashrc is sourced when doing an SSH to a Fedora server?
I can do souce .bashrc once i log in, but how can this be setup to happen automatically?
I login as userID@serverIP and that will start me up in my homedirectory, but it won't source the .bashrc

Cheers


Soren

trickykid 07-27-2005 11:54 PM

Re: ssh remote login - how to source .bashrc automatically
 
Quote:

Originally posted by newsgroupie2003
Hi,
How does one control if .bashrc is sourced when doing an SSH to a Fedora server?
I can do souce .bashrc once i log in, but how can this be setup to happen automatically?
I login as userID@serverIP and that will start me up in my homedirectory, but it won't source the .bashrc

Cheers


Soren

Use .bash_profile instead or edit your /etc/profile which is the global file that affects all users. And if you still don't want to do it this way, just add it to your /home/username/.bash_login file, create it if it doesn't exist already.

newsgroupie2003 08-16-2005 04:49 AM

That did the trick!
Thanks!
Soren


All times are GMT -5. The time now is 04:37 PM.