I'm having trouble connecting to my server and the ssh service is running.

Linode Staff

I'm having trouble connecting to my server and the ssh service is running. Any ideas as to what the problem may be?

1 Reply

It sounds like this may be related to the firewall rules on your server. You can verify your current rules using the "iptables" and/or "ufw" commands.

iptables-save
ufw status

If there are rules in place that are restricting access, you can try backing up your current rules and flushing them afterwards.

iptables-save > /tmp/iptables.txt
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F

Once this is done, try establishing a connection to your Linode. To restore your rules, you can run the following command:

iptables-restore < /tmp/iptables.txt

For UFW, you can disable this service and try connecting afterwards. You can then re-enable the service if necessary after your testing.

ufw disable
ufw enable

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