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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
10-01-2005, 09:38 AM
|
#1
|
LQ Newbie
Registered: Apr 2001
Location: Austin, Tx
Distribution: Debian
Posts: 25
Rep:
|
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?
|
|
|
10-01-2005, 11:59 AM
|
#2
|
LQ Newbie
Registered: Mar 2004
Location: Utrecht, Netherlands
Distribution: Debian unstable
Posts: 20
Rep:
|
same problem here. got any further?
|
|
|
10-01-2005, 12:09 PM
|
#3
|
LQ Newbie
Registered: Apr 2001
Location: Austin, Tx
Distribution: Debian
Posts: 25
Original Poster
Rep:
|
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 12:11 PM.
|
|
|
10-01-2005, 12:12 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
Bug#314289?
If " touch /etc/environment" fixed that, then that was Bug#314289.
|
|
|
10-01-2005, 12:28 PM
|
#5
|
LQ Newbie
Registered: Apr 2001
Location: Austin, Tx
Distribution: Debian
Posts: 25
Original Poster
Rep:
|
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!
|
|
|
10-02-2005, 04:32 PM
|
#6
|
LQ Newbie
Registered: Mar 2004
Location: Utrecht, Netherlands
Distribution: Debian unstable
Posts: 20
Rep:
|
I didn't have a /etc/environment file but creating it did the trick. In which package is /etc/environment supposed to be?
|
|
|
10-02-2005, 04:55 PM
|
#7
|
LQ Newbie
Registered: Apr 2001
Location: Austin, Tx
Distribution: Debian
Posts: 25
Original Poster
Rep:
|
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 ![Wink](https://www.linuxquestions.org/questions/images/smilies/wink.gif)
|
|
|
01-13-2009, 03:04 AM
|
#8
|
LQ Newbie
Registered: Jan 2009
Location: Jakarta-ID
Distribution: Centos, Fedora, Ubuntu
Posts: 6
Rep:
|
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 03:05 AM.
|
|
|
01-21-2009, 02:20 PM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
01-22-2009, 04:39 AM
|
#10
|
LQ Newbie
Registered: Jan 2009
Location: Jakarta-ID
Distribution: Centos, Fedora, Ubuntu
Posts: 6
Rep:
|
Quote:
Originally Posted by reddazz
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.
|
![Big Grin](https://www.linuxquestions.org/questions/images/smilies/biggrin.gif) ![Big Grin](https://www.linuxquestions.org/questions/images/smilies/biggrin.gif)
|
|
|
03-02-2010, 08:51 PM
|
#11
|
LQ Newbie
Registered: Jan 2006
Posts: 1
Rep:
|
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
|
|
|
05-24-2010, 03:24 PM
|
#12
|
LQ Newbie
Registered: May 2010
Posts: 1
Rep:
|
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.
|
|
|
05-24-2010, 03:35 PM
|
#13
|
Member
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|