Linux - SoftwareThis 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.
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.