job.answiz.com
  • 1
Votes
name
name Punditsdkoslkdosdkoskdo

remote shell auto completion suddenly off

I have created multiple servers via ssh and one of them suddenly has no autocompletion and also doesn't support arrow keys up/down.

Also if I do su username from root my shell looks like this:

$

on the other servers it looks like this:

[email protected]:~$

My steps on every server were the same:

ssh [email protected]_address
password entry
useradd -m username
passwd username
usermod -a -G sudo username
su username

The systems are all Ubuntu 16.04 Does anybody know whats the issue?

EDIT: By mistake the last server I have created was an Ubuntu 18.04 machine, which doesn't work correctly. So on the 16.04 machines the bash works fine.

 

Also, make sure you have the following lines in your .bashrc (these should be there by default):

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi
  • 0
Reply Report