Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Apr 05, 2011 10:41 pm 
Offline
Junior Member

Joined: Sat Oct 24, 2009 2:16 pm
Posts: 21
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?


Top
   
 Post subject:
PostPosted: Wed Apr 06, 2011 12:46 am 
Offline
Senior Newbie

Joined: Fri Jan 28, 2011 10:21 am
Posts: 17
Location: Kiev, Ukraine
Login through LISH and look at logs. Especially auth.log


Top
   
 Post subject:
PostPosted: Wed Apr 06, 2011 1:44 am 
Offline
Junior Member

Joined: Sat Oct 24, 2009 2:16 pm
Posts: 21
Code:
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:

Code:
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.


Top
   
 Post subject:
PostPosted: Wed Apr 06, 2011 2:11 am 
Offline
Junior Member

Joined: Sat Oct 24, 2009 2:16 pm
Posts: 21
Code:
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:

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


Top
   
 Post subject:
PostPosted: Wed Apr 06, 2011 10:16 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
EDIT: Never mind.


Top
   
 Post subject:
PostPosted: Wed Apr 06, 2011 12:00 pm 
Offline
Junior Member

Joined: Sat Oct 24, 2009 2:16 pm
Posts: 21
My host.allow file somehow got reset and was empty, bah!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: fos and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group