DEV Community

Cover image for Linux Learning Journey – Day 7: SSH Practice, Firewall, IP Awareness & Troubleshooting πŸ§πŸ”§
Avinash wagh
Avinash wagh

Posted on

Linux Learning Journey – Day 7: SSH Practice, Firewall, IP Awareness & Troubleshooting πŸ§πŸ”§

After learning and configuring SSH on Day 6, Day 7 was dedicated to practice, verification, and troubleshootingβ€”the skills that matter most when working with real Linux servers in cloud and production environments.

Instead of rushing into new topics, I focused on strengthening fundamentals that ensure stable, secure, and reliable remote access.

πŸ”Ή 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 verified my remote session by checking my current directory and listing 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 practiced allowing and verifying 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 practiced identifying 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 Windows Command Prompt.

βœ”οΈ Successful login confirmed that:

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

πŸš€ Day 7 Takeaway:
Linux mastery isn’t just about memorizing commandsβ€”it’s about practice, verification, and understanding how systems behave. Checking network, firewall, and SSH repeatedly boosted my confidence in troubleshooting and made Linux feel predictable and powerful.

Consistency wins!

Top comments (0)