Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Cheers,

Pete

share|improve this question
1  
What shell echo $SHELL? –  ooshro Feb 24 '11 at 22:55
add comment

1 Answer

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:

/bin/bash

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
add comment

Your Answer

 
discard

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.