M# Week 3 – Remote Access & System Hardening
The goal for this week was to configure secure remote access to the server using SSH and to implement a firewall (UFW) to protect the system from unauthorized network traffic.
I installed and configured the OpenSSH server to allow management from a remote Windows terminal.
sudo apt install openssh-server -y2222 to guest port 22.
Above: Verifying that the SSH service is active and running.
I verified the connection using Windows PowerShell to ensure the port forwarding and credentials were correct.
ssh zetzura@127.0.0.1 -p 2222
Above: Successful remote login to the Ubuntu server from the host machine.
To secure the server, I enabled the Uncomplicated Firewall (UFW) and specifically allowed only SSH traffic.
sudo ufw allow sshsudo ufw enablesudo ufw status verbose
Above: Screenshot showing the firewall is active and only allowing port 22/tcp.