View previous topic :: View next topic |
Author |
Message |
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Tue Jan 06, 2004 5:28 am Post subject: ssh and .bashrc |
|
|
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 |
|
|
mattam Retired Dev
Joined: 06 Jan 2004 Posts: 3 Location: France
|
Posted: Tue Jan 06, 2004 6:41 am Post subject: |
|
|
You've got to either Code: | ln -s ~/.bashrc ~/.bash_profile | or add to your ~/.profile or ~/.bash_profile. |
|
Back to top |
|
|
teknomage1 Veteran
Joined: 05 Aug 2003 Posts: 1239 Location: Los Angeles, CA
|
Posted: Tue Jan 06, 2004 6:51 am Post subject: |
|
|
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 |
|
|
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Tue Jan 06, 2004 1:24 pm Post subject: |
|
|
Thank you _________________ The strong must protect the Sweet. |
|
Back to top |
|
|
|