SSH cannot accessed remotely

I want to backup my disk, so I put my linode to rescue mode, enabling ssh by

/etc/init.d/ssh start

create new password with

passwd

I once was able to connect via ssh, but after few days without accessing linode, I cannot access it again, and port check using online services said port 22 is closed.
Here is relevant content of /etc/ssh/sshd_config:

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/sshhostrsakey HostKey /etc/ssh/sshhostdsakey
HostKey /etc/ssh/sshhostecdsakey HostKey /etc/ssh/sshhosted25519key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

I can ssh to my linode from lish, but not from my pc to linode.
is there something wrong? Or Is there something should I do? Thanks in advance.

2 Replies

What is the IP address? Does it ping? What about your firewall?

@Woet IP is 172.104.39.164, yes it pings.
There is no entry on iptables, thus makes me believe that there is no firewall.
I cannot SSH from lish to any remote server either.

I SSHed to root using lish

root@ttyS0:/# iptables -S
modprobe: ERROR: ../libkmod/libkmod.c:578 kmodsearchmoddep() could not open moddep file '/lib/modules/4.1.2-finnix/mod
ules.dep.bin'

Here is relevant netstat entry:

netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:ssh *:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN

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