LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2011, 12:26 PM   #1
loadedmind
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Red Hat/CentOS
Posts: 302
Blog Entries: 4

Rep: Reputation: Disabled
ssh connection forces password change, then closes connection


This is probably one of those uber-easy solutions, but I just can't figure out why this happens the way it does currently. On my linux machine, I've enforced a password expiry policy every 45 days. So, today when I tried to ssh to the host, I get the typical "WARNING: Your password has expired". Fine, no big deal. But when I enter my new password and confirm, instead of giving me a login prompt, it tells me passwd all auth tokens updated successfully, then next line, "Connection to <host> closed". I can re-ssh back into that host and all is well from here, but it's a nuisance having to go through the extra step. Is this something in the /etc/ssh/sshd_config somewhere or perhaps a PAM config issue?
 
Old 02-16-2011, 01:02 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Most likely making the changes and the changes are probably not being set until reboot.
 
Old 02-16-2011, 01:24 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by loadedmind
But when I enter my new password and confirm, instead of giving me a login prompt, it tells me passwd all auth tokens updated successfully, then next line, "Connection to <host> closed". I can re-ssh back into that host and all is well from here, but it's a nuisance having to go through the extra step. Is this something in the /etc/ssh/sshd_config somewhere or perhaps a PAM config issue?
What OS / version?

On RHEL-family distros, you should check /var/log/secure for clues.
 
  


Reply



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 to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
allowing ssh connection without password as user how do I do it...? Alexvader Slackware 16 01-15-2011 08:52 PM
[Solved]ssh connection wothout password windstory Linux - Newbie 6 04-05-2010 09:14 AM
SSH closes the connection right after the authentication Rauldinho Linux - Networking 2 09-05-2008 08:34 AM
SSH closes connection before login goose240 Linux - Networking 4 02-14-2005 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration