LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-27-2005, 11:50 PM   #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-27-2005, 11:54 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 04:49 AM   #3
newsgroupie2003
LQ Newbie
 
Registered: Jul 2005
Posts: 2

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


Reply



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 12:39 PM
.bashrc doesn't execute on ssh login rose_bud4201 Linux - Software 2 06-01-2005 08:28 AM
Restricting SFTP, SSH Remote Login majicrobot Linux - Security 1 09-20-2004 10:54 AM
Changing SSH remote login look untwisted Linux - Software 2 03-14-2004 12:50 PM
I need remote login/ ssh/ whatever BryanMC Linux - General 6 05-26-2003 11:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration