How do I fix if I can't access server with ssh?
I got a problem not sure how its come from but this its what linode response
I first reviewed the host where your Linode resides for any evidence of resource contention or other similar reports on this host, however my search did not find any resource contention and we have not received any similar reports of issues from this host. With no issues detected on the host level I then reviewed the Linode for any signs of issues we can help you diagnose. On your Linodes 2nd most recent boot I found the following messages in the console:
[10287880.908776] Out of memory: Killed process 1869555 (apache2) total-vm:1798952kB, anon-rss:1202876kB, file-rss:0kB, shmem-rss:0kB, UID:33 pgtables:2732kB oom_score_adj:0
[10374091.925051] Out of memory: Killed process 1877929 (apache2) total-vm:1693948kB, anon-rss:1221724kB, file-rss:0kB, shmem-rss:0kB, UID:33 pgtables:2856kB oom_score_adj:0
[10388197.867076] Out of memory: Killed process 1885165 (apache2) total-vm:1748064kB, anon-rss:1213156kB, file-rss:0kB, shmem-rss:0kB, UID:33 pgtables:2744kB oom_score_adj:0
[10565235.880803] Out of memory: Killed process 1907070 (apache2) total-vm:1954876kB, anon-rss:1181852kB, file-rss:0kB, shmem-rss:0kB, UID:33 pgtables:3012kB oom_score_adj:0
[10565296.291530] Out of memory: Killed process 1913943 (apache2) total-vm:1915792kB, anon-rss:1254628kB, file-rss:0kB, shmem-rss:0kB, UID:33 pgtables:2992kB oom_score_adj:0
[10693988.456653] Out of memory: Killed process 1935548 (apache2) total-vm:1925068kB, anon-rss:1208004kB, file-rss:0kB, shmem-rss:0kB, UID:33 pgtables:2900kB oom_score_adj:0
and problem its I cant ping to my ip and my ip cant ping to anysite and cannot access with SSH only from lish console can access but my firewall look normal ufw status:
To Action From
-- ------ ----
22 ALLOW Anywhere
443 ALLOW Anywhere
22/tcp ALLOW Anywhere
22 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
how can I fix it?
1 Reply
When a server is running out of memory, it can cause a lot of problems, including networking issues. It's possible that you weren't able to access your server because the SSH services was later killed or didn't have enough memory to operate.
You'll want to follow the instructions here for dealing with a server that's running out of memory:
My Linode is OOMing
Troubleshooting Memory Issues
Once you take care of the memory issue, you can then see if there are still additional problems that need to be addressed. Make sure you take steps to restart any services that may have failed and may not be enabled. This guide will help with that: