can't ssh into my linode anymore

Putty keeps saying "server unexpectedly closed network connection"

The website itself is up and running, http works. Restarting sshd didn't help (using the linode console).

help?

5 Replies

Login through LISH and look at logs. Especially auth.log

````
Apr 5 19:40:13 kosh sshd[2776]: error: Bind to port XXXX on 0.0.0.0 failed: Add
ress already in use.

I changed the port to a choosen number (hidden as XXX) in sshd_config. This used to work, I even stopped iptables

netstat:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 :::XXXX :::* LISTEN

````

Reboot didn't help, same issue and error.

````
Apr 5 23:08:29 kosh sshd[2447]: Server listening on :: port XXXX.
Apr 5 23:08:56 kosh sshd[2451]: refused connect from ::ffff:24.130.219.56 (::ff
ff:24.130.219.56)

I had to change sshd_config to this to fix the already in use error:

Port XXXX

Protocol 2,1

Protocol 2

AddressFamily inet

ListenAddress 0.0.0.0

ListenAddress ::

````

Seems to be ipv6 related? Now to figure out why its rejecting everything.

I can ssh into localhost from the ajax console just fine, just not remotly

My host.allow file somehow got reset and was empty, bah!

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