Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set up an Ubuntu image on EC2 and everything is working great. However, when I SSH onto the server my terminal prompt is always $ and several features I'm used to in the default Ubuntu terminal (tab auto-complete, for example) are not available. I've tried adding a .bashrc file to my home directory but that didn't help. How can I set this up?



share|improve this question
What shell echo $SHELL? – ooshro Feb 24 '11 at 22:55
up vote 2 down vote accepted

If your shell is not bash(echo $SHELL, show dash or other), change login shell to bash. First, run bash to check it:


If bash work, change login shell(change LOGIN):

usermod -s /bin/bash LOGIN
share|improve this answer
I hope you can help, as I have this same problem. If I ssh in with my secondary account (call it john), bash does not load. However, I have run usermod -s /bin/bash john from a su account, and also have run chsh /bin/bash from the john ssh account. When I look at the /etc/passwd it returns john:x:1001:1001::/home/john:/bin/bash. And when I ssh into the account, and type /bin/bash, it loads bash. However, for some reason, bash will not load automatically and I stuck with sh as the login shell. Any advice? – Matthew O'Riordan Nov 17 '11 at 16:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.