Skip to main content

Initial Setup as Root

Initial Server Setup with Ubuntu

caution

Replace the IP address and sammy below with your own server and username.

Log in as root​

ssh root@your-server-ip

Create a new user​

adduser sammy

Grant sudo privileges​

usermod -aG sudo sammy

Set up the firewall​

ufw app list
ufw allow OpenSSH
ufw enable
ufw status

Test the new user account​

Open a new terminal session and log in as the new user:

ssh sammy@your-server-ip
sudo su
exit