Linux Learning Journey โ€“ Day 7: SSH Practice, Firewall, IP Awareness & Troubleshooting ๐Ÿง๐Ÿ”ง

Published: (January 18, 2026 at 08:07 AM EST)
1 min read
Source: Dev.to

Source: Dev.to

What I Practiced Today

Network Connectivity Verification

Before using SSH, I verified that my Ubuntu machine was reachable on the network.

ping 10.255.125.231

If the network is unreachable, SSH will not work.

Verifying Remote SSH Session (ls & pwd)

After connecting via SSH, I checked my current directory and listed files.

pwd
ls

These commands confirmed that:

  • I was logged into my Ubuntu system
  • I had access to my home directory
  • The SSH session was active and stable

Firewall Configuration for SSH (UFW)

To ensure SSH access was not blocked by the firewall, I allowed and verified SSH rules.

sudo ufw allow ssh
sudo ufw status

This confirmed that:

  • Portโ€ฏ22 was allowed
  • Firewall rules were correctly applied

Checking System IP Address

Since IP addresses can change, I identified the system IP using:

ip a
hostname -I

IP awareness is critical when accessing systems remotely.

Restarting SSH Service

To simulate realโ€‘world troubleshooting, I restarted the SSH service and verified its status.

sudo systemctl restart ssh
sudo systemctl status ssh

Restarting services is a common administrative task.

Reconnecting from Windows via SSH

Finally, I reconnected to my Ubuntu machine from the Windows Command Prompt.

ssh avinash@10.255.125.231

Successful login confirmed that:

  • SSH service was running
  • Firewall rules were correct
  • Network connectivity was stable

Dayโ€ฏ7 Takeaway

Consistency wins!

Back to Blog

Related posts

Read more ยป

๐——๐—ฒ๐˜€๐—ถ๐—ด๐—ป๐—ฒ๐—ฑ ๐—ฎ ๐—ฃ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐˜๐—ถ๐—ผ๐—ปโ€‘๐—ฅ๐—ฒ๐—ฎ๐—ฑ๐˜† ๐— ๐˜‚๐—น๐˜๐—ถโ€‘๐—ฅ๐—ฒ๐—ด๐—ถ๐—ผ๐—ป ๐—”๐—ช๐—ฆ ๐—”๐—ฟ๐—ฐ๐—ต๐—ถ๐˜๐—ฒ๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ ๐—˜๐—ž๐—ฆ | ๐—–๐—œ/๐—–๐—— | ๐—–๐—ฎ๐—ป๐—ฎ๐—ฟ๐˜† ๐——๐—ฒ๐—ฝ๐—น๐—ผ๐˜†๐—บ๐—ฒ๐—ป๐˜๐˜€ | ๐——๐—ฅ ๐—™๐—ฎ๐—ถ๐—น๐—ผ๐˜ƒ๐—ฒ๐—ฟ

!Architecture Diagramhttps://dev-to-uploads.s3.amazonaws.com/uploads/articles/p20jqk5gukphtqbsnftb.gif I designed a productionโ€‘grade multiโ€‘region AWS architectu...