I need to work with ubuntu server remotely using ssh. I have only basic knowledge about linux administration, so it is difficult to work from shell. But any way... When I connected as root via ssh "autocomplete" for commands and folders using Tab and storing of command history works fine.
I created separate user account for me:
sudo useradd andrew
sudo adduser andrew sudo
sudo passwd andrew
after login as andrew server told me, that home directory for "andrew" doesn't exsist, so
sudo mkdir /home/andrew
sudo chown andrew:andrew /home/andrew
but neither "autocomplete" for commands and folders nor command history doesn't work for this user
Is there any way to make it work?
adduser andrew
and notuseradd andrew
. (You'll see in the man page thatuseradd
is a low-level utility).