Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keep SSH open after failed login
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
d4mo
Guru
Guru


Joined: 27 Jun 2005
Posts: 430

PostPosted: Wed Jan 31, 2007 9:25 pm    Post subject: Keep SSH open after failed login Reply with quote

Right now, with the way my SSH is set up, if I login via Putty and I enter the wrong password the window closes. How do I get it to let me have multiple attempts to login without the window closes after every failed. I tried to uncomment the MaxAuthTries in /etc/ssh/sshd_config and ti didn;t do anything.
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Wed Jan 31, 2007 9:29 pm    Post subject: Re: Keep SSH open after failed login Reply with quote

d4mo wrote:
... if I login via Putty ...
Sounds like a problem with Putty. Have you tried SSH'ing in using something else?
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
d4mo
Guru
Guru


Joined: 27 Jun 2005
Posts: 430

PostPosted: Wed Jan 31, 2007 9:50 pm    Post subject: Reply with quote

Well I've used putty to login to a Slackware system and it lets me have 2 login trys.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Wed Jan 31, 2007 10:22 pm    Post subject: Reply with quote

You are right; It doesn't have anything to do with PuTTY - PuTTY (In default setup) only closes the window once the remote system drops the connection.

As for the OP question:

I suspect the SSHD authentication is being handled by the evil sadistic entity known as PAM.

Check your /etc/ssh/sshd_config
If "UsePAM" = "yes" then you must change the login tries in your PAM config (As PAM is horribly and terminally convoluted to the point IMHO it should be shot, I cannot help with that)

OR

Set "UsePAM" to "no" and then the "MaxAuthTries" key should work again (Remember to restard sshd 'tho! ;))
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum