ssh root@<SERVER_IP>
apt update && apt upgrade -y && apt install -y sudo
Unlink or back up the previous one:
mv /etc/localtime /etc/localtime.old
Set the new timezone:
ln -s /usr/share/zoneinfo/<ZONE_CONTINENT>/<ZONE_NAME> /etc/localtime
Check the new timezone with date
adduser <NEW_USER>
Grant sudo privileges:
usermod -a -G sudo <NEW_USER>
From your job computer:
ssh-copy-id -i .ssh/<MY_PUBLIC_SSH_KEY> <NEW_USER>@<SERVER_IP>
vim /etc/ssh/sshd_config
Change PermitRootLogin yes
to PermitRootLogin no
Optionally but highly recommended disallow access using clear text password changing PasswordAuthentication yes
to PasswordAuthentication no
Optionally but recommended change default port - if no well-known nor register better to avoid possible scanners - changing Port 22
to Port 6500
Optionally propagation of locale can be switch off by commenting the following line AcceptEnv LANG LC_*
Restart SSH daemon:
systemctl restart ssh
sudo visudo
and add the following line to the sudoers list
username ALL = NOPASSWD : ALL