Linux server is not accessible

Ashish KaradAshish Karad
1 min read

Follow below steps to troubleshoot:

Step (1)

Check the network connectivity by ping command

ping <ipaddress>

If server not respond then proceed to check further network check as physical network connections are functioning properly.

Step (2)

Check the SSH service:

Verify SSH is running-
sudo systemctl status sshd

If SSH is not running, start it-
sudo systemctl start sshd

Ensure the firewall is not blocking the SSH or the port you are trying to connect:
Check if SSH is allow
sudo ufw status
Allow SSH if its not
sudo ufw allow ssh

Step(3)

Check server status:
Access via KVM

reboot server if necessary

Step(4)

Check the logs
cd /var/log

SSH log /var/log/auth.log

system log /vsr/log/syslog

Last command before crashing

/vsr/og/dpkg.log

So that will get to know which pacjage istalled.
"Thank you for reading my blog! Happy Learning!!!๐Ÿ˜Š

Stay tuned for more DevOps articles follow me on Hashnode and connect on LinkedIn (https://www.linkedin.com/in/ashish-karad-ba9630235/)
for the latest updates and discussions.

0
Subscribe to my newsletter

Read articles from Ashish Karad directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ashish Karad
Ashish Karad

Stay tuned for Devops techno..!!