Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh and .bashrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Tue Jan 06, 2004 5:28 am    Post subject: ssh and .bashrc Reply with quote

When I ssh into a user account it doesn't appear that the .bashrc file is read. I have aliases set up but they do not work when I use ssh. I can run another bash shell once I am logged in and then it reads .bashrc. How do I fix it so that when I logged in via ssh the .bashrc file is read?

Thx
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
mattam
Retired Dev
Retired Dev


Joined: 06 Jan 2004
Posts: 3
Location: France

PostPosted: Tue Jan 06, 2004 6:41 am    Post subject: Reply with quote

You've got to either
Code:
ln -s ~/.bashrc ~/.bash_profile
or add
Code:
source ~/.bashrc
to your ~/.profile or ~/.bash_profile.
Back to top
View user's profile Send private message
teknomage1
Veteran
Veteran


Joined: 05 Aug 2003
Posts: 1239
Location: Los Angeles, CA

PostPosted: Tue Jan 06, 2004 6:51 am    Post subject: Reply with quote

you probably don't want to make a symlink because if .bashrc generates output it will break some things (like sftp for example). By default gentoo's .bash_profile should be set up to source .bashrc

Make sure in /etc/sshd_config
the option useLogin is set to yes or commented out
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Tue Jan 06, 2004 1:24 pm    Post subject: Reply with quote

Thank you :)
_________________
The strong must protect the Sweet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum