GensaGames
GensaGames

Reputation: 5788

EC2 Ubuntu instance autocomplete shell commands

While using AWS "Session Manager" I can easily connect to the instance. I logged in as a "ssm-user" and for some reason shell commands doesn't autocomplete. For ex. cd folder/[TAB] doesn't work.

I can switch to SU and everything will be available. Or I can create another user where all the commands will work right away. The thing is, I want to have this avility right away on the "ssm-user".

UPDATE: So running simply bash or zsh if it's installed will be enought to enter interactive shell. That's was embarasing reasy.

Upvotes: 2

Views: 1374

Answers (2)

Marcin
Marcin

Reputation: 239010

In your session manager preferences you can specify the shell the you want to use. To use bash you can set it as follows:

enter image description here

Please note that you may need to upgrade your SSM Agent on the instance. If you have old version, the shell profiles may not work. This can be easily done using AWS-UpdateSSMAgent SSM Run Command.

Upvotes: 6

Check what shell 'ssm-user' is using. Make sure it's one that actually supports tab completion (like bash or zsh).

Upvotes: 2

Related Questions