LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-01-2005, 08:38 AM   #1
Errsta_Fonzarelli
LQ Newbie
 
Registered: Apr 2001
Location: Austin, Tx
Distribution: Debian
Posts: 25

Rep: Reputation: 15
SSH issue ""Server unexpectedly closed network connection"


Here's the deal:

OS: Debian (unstable)

I usually SSH into my home system remotely with no issues.

As of last night, when I attempt to log into the system with PuTTY, here's what happens: It prompts me for a user name and accepts it. It then prompts me for a password, and it then immediately aborts with the message:"Server unexpectedly closed network connection".

I checked /var/cache/apt/archives/ to see if my last upgrade included an ssh package. It did not.

/var/log/auth.log shows this message for each login attempt:

Code:
Sep 30 21:47:00 austin sshd[13203]: Accepted keyboard-interactive/pam for myusername from 13.16.61.31 port 29260 ssh2 

Sep 30 21:47:00 austin sshd[13208]: (pam_unix) session opened for user myusername by (uid=0) 

Sep 30 21:47:00 austin sshd[13208]: fatal: PAM: pam_setcred(): Critical error - immediate abort 

Sep 30 21:47:00 austin sshd[13208]: (pam_unix) session closed for user myusername
I checked my backup CD that I so wisely made a month ago and compared the /etc/ssh/sshd_config files and they are the same.

Any ideas?
 
Old 10-01-2005, 10:59 AM   #2
wensveen
LQ Newbie
 
Registered: Mar 2004
Location: Utrecht, Netherlands
Distribution: Debian unstable
Posts: 20

Rep: Reputation: 0
same problem here. got any further?
 
Old 10-01-2005, 11:09 AM   #3
Errsta_Fonzarelli
LQ Newbie
 
Registered: Apr 2001
Location: Austin, Tx
Distribution: Debian
Posts: 25

Original Poster
Rep: Reputation: 15
yeah...

It was one of the libpam packages. Kinda wanted to keep them all at uniform revs, so I downgraded all of them.

libpam-cracklib_0.79-1_i386.deb
libpam-cracklib_0.79-2_i386.deb
libpam-modules_0.79-1_i386.deb
libpam-modules_0.79-2_i386.deb
libpam-runtime_0.79-1_all.deb
libpam-runtime_0.79-2_all.deb
libpam0g-dev_0.79-1_i386.deb
libpam0g-dev_0.79-2_i386.deb
libpam0g_0.79-1_i386.deb
libpam0g_0.79-2_i386.deb

I went down from the 0.79-2 versions back to the 0.79-1 versions and all is well...

Last edited by Errsta_Fonzarelli; 10-01-2005 at 11:11 AM.
 
Old 10-01-2005, 11:12 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,121
Blog Entries: 54

Rep: Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787Reputation: 2787
Bug#314289?

If " touch /etc/environment" fixed that, then that was Bug#314289.
 
Old 10-01-2005, 11:28 AM   #5
Errsta_Fonzarelli
LQ Newbie
 
Registered: Apr 2001
Location: Austin, Tx
Distribution: Debian
Posts: 25

Original Poster
Rep: Reputation: 15
Re: Bug#314289?

Quote:
Originally posted by unSpawn
If " touch /etc/environment" fixed that, then that was Bug#314289.
Yes sir!

Thank you.

I went back up to the *79-2* revs and did the above. All is good now.

Thanks again!
 
Old 10-02-2005, 03:32 PM   #6
wensveen
LQ Newbie
 
Registered: Mar 2004
Location: Utrecht, Netherlands
Distribution: Debian unstable
Posts: 20

Rep: Reputation: 0
I didn't have a /etc/environment file but creating it did the trick. In which package is /etc/environment supposed to be?
 
Old 10-02-2005, 03:55 PM   #7
Errsta_Fonzarelli
LQ Newbie
 
Registered: Apr 2001
Location: Austin, Tx
Distribution: Debian
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by wensveen
I didn't have a /etc/environment file but creating it did the trick. In which package is /etc/environment supposed to be?
FYI: "touch /etc/environment" creates the file
 
Old 01-13-2009, 02:04 AM   #8
p_nyet
LQ Newbie
 
Registered: Jan 2009
Location: Jakarta-ID
Distribution: Centos, Fedora, Ubuntu
Posts: 6

Rep: Reputation: 0
Im found some problem and i can solve it

I have default sshd_config
UseDNS yes

and change UseDNS on sshd_config from "yes" to "no", restart sshd

CMIIW

Regards

pnyet.web.id

Last edited by p_nyet; 01-13-2009 at 02:05 AM.
 
Old 01-21-2009, 01:20 PM   #9
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
p_nyet, welcome to the forum.

This is an old thread. If you would like to help, please can you look at new threads and assist if you can.
 
Old 01-22-2009, 03:39 AM   #10
p_nyet
LQ Newbie
 
Registered: Jan 2009
Location: Jakarta-ID
Distribution: Centos, Fedora, Ubuntu
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by reddazz View Post
p_nyet, welcome to the forum.

This is an old thread. If you would like to help, please can you look at new threads and assist if you can.
 
Old 03-02-2010, 07:51 PM   #11
etapia
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
Cool

I had the same issue...I found that the IP of host I was trying to connect from was in /etc/hosts.deny

All I had to do is remove that entry
 
Old 05-24-2010, 02:24 PM   #12
pocha
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
check /etc/hosts.deny file on the server

From another post, i figured out that by default, ubuntu puts ALL:ALL in hosts.deny file. So typically, the server would not be able to take any incoming http/ssh connection. You might like to remove the entry for the server to be able to take connections. Alternatively, you can selectively allow IPs in /etc/hosts.allow file.
 
Old 05-24-2010, 02:35 PM   #13
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 266

Rep: Reputation: 30
The most likelly thing is that some updated package replaced your hosts.deny, hosts.allow, hosts.equiv, and hosts files with the default versions (of which the hosts.deny is set to ALL:ALL) what you have to do is that when you update packages you need to verify which config files it's replacing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH "Connection Refused" problem when there is no firewall/router involved in Fedora4 d2army Linux - Networking 5 10-04-2005 05:01 PM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
"Anaconda" and "mini-wm" lost connection to display :1.0;??? cbrittain Fedora - Installation 2 03-14-2004 11:22 AM
"Anaconda" and "mini-wm" lost connection to display :1.0;??? cbrittain Linux - General 0 02-24-2004 05:04 PM
What is "Xlib: connection to ":0.0" refused by server " rack201 Linux - Software 1 02-04-2004 07:49 AM


All times are GMT -5. The time now is 08:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration