Logout or close the ssh connection. Then ssh back in as your new username instead of root.
Logout or close the ssh connection. Then ssh back in as your new username instead of root.
### 3. Setting Up Uncomplicated Firewall (Optional)
### 3. Set Up Uncomplicated Firewall (Optional)
```
```
sudo apt install ufw
sudo apt install ufw
sudo ufw allow OpenSSH
sudo ufw allow OpenSSH
@ -43,6 +42,8 @@ sudo ufw enable
This is a basic firewall on ubuntu. If you install this remember to unblock the specific ports you need open for some of your applications. In the example below we allow our own SSH connection, and open TCP ports 80 & 443 in order for Caddy v2 to work.
This is a basic firewall on ubuntu. If you install this remember to unblock the specific ports you need open for some of your applications. In the example below we allow our own SSH connection, and open TCP ports 80 & 443 in order for Caddy v2 to work.
### 4. Adding your SSH Key (Optional)
### 4. Adding your SSH Key (Optional)
Optional because you can choose to keep logging in with passwords if you wish. However logging in via SSH keys is more secure.
```
```
cd ~
cd ~
mkdir .ssh
mkdir .ssh
@ -50,7 +51,7 @@ cd .ssh
nano authorized_keys
nano authorized_keys
```
```
If you'd like to learn how to create an SSH key I have a tutorial for the PuTTY version.
If you'd like to learn how to create an SSH key I will be making tutorial for PuTTY users.