Thursday, April 14, 2016

SSH and login prompt

If you log via SSH and you get a prompt showing only the bash version it means that .bashrc wasn't sourced. SSH sources .bash_profile not .bashrc.
To solve this problem,  create/update .bash_profile with the   following content :

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi
 This is the way to go for docker too :)

Source
http://stackoverflow.com/

No comments:

Post a Comment

Your comment will be visible after approval.