Cannot ssh after restart

Hi,

I saw a 'System Restart required' message on my linode and restarted it. After that i have been unable to ping or ssh into my machine. I usually use Putty or Chrome Native Client app to ssh and neither works now.

Here;s the error in my chrome native client app

Loading NaCl plugin... done.
ssh: connect to host 45.79.172.80 port 22: Connection refused
NaCl plugin exited with status code 255.
(R)econnect, (C)hoose another connection, or E(x)it?

I did notice that i restarted via the linode website while logged in via the chrome native client app, and closed the native client tab while the machine was restarting.

Now …

I can login via the Ajax LISH console using my user account.

I can access all my directories and websites.

Apache, mysql are running.

I tried to check my firewall rules: here's some relevant output.

sudo iptables -L -nv | grep 22                                                       
   54  3084 fail2ban-ssh  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport 
dports 22
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            224.0.0.251          udp dpt:5353
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:22

sudo iptables -L -nv | grep 80                                                       
   16   920 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80 state NEW

sudo iptables -L -nv | grep 443                                                                                       
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:443 state NEW

Please let me know if you need any more information.

Appreciate your help.

Thanks,

-vidhya

2 Replies

Hi ,

Does anyone have any suggestions for me to try, please?

I have flushed iptables and followed instructions here to set up ufw https://www.linode.com/docs/security/fi … l-with-ufw">https://www.linode.com/docs/security/firewalls/configure-firewall-with-ufw

But i still get the same error.

Thanks

-Vidhya

Is sshd running? Try sudo netstat -lvpnut to see what daemons are listening on the network.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct