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).


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 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


Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0* LISTEN
tcp 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: (::ff

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


Protocol 2,1

Protocol 2

AddressFamily inet


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

EDIT: Never mind.

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


Please enter an answer

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] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct