LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-28-2005, 12:50 AM   #1
newsgroupie2003
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
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
 
Old 07-28-2005, 12:54 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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.
 
Old 08-16-2005, 05:49 AM   #3
newsgroupie2003
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Original Poster
Rep: Reputation: 0
That did the trick!
Thanks!
Soren
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh remote login help LAdProg2005 Linux - Networking 2 10-05-2005 01:39 PM
.bashrc doesn't execute on ssh login rose_bud4201 Linux - Software 2 06-01-2005 09:28 AM
Restricting SFTP, SSH Remote Login majicrobot Linux - Security 1 09-20-2004 11:54 AM
Changing SSH remote login look untwisted Linux - Software 2 03-14-2004 01:50 PM
I need remote login/ ssh/ whatever BryanMC Linux - General 6 05-26-2003 12:09 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration