View previous topic :: View next topic |
Author |
Message |
d4mo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 27 Jun 2005 Posts: 430
|
Posted: Wed Jan 31, 2007 9:25 pm Post subject: Keep SSH open after failed login |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
madisonicus Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_r2-d2.gif)
Joined: 20 Sep 2006 Posts: 1130
|
Posted: Wed Jan 31, 2007 9:29 pm Post subject: Re: Keep SSH open after failed login |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
d4mo Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_storm_trooper.gif)
Joined: 27 Jun 2005 Posts: 430
|
Posted: Wed Jan 31, 2007 9:50 pm Post subject: |
|
|
Well I've used putty to login to a Slackware system and it lets me have 2 login trys. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cyker Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 15 Jun 2006 Posts: 1746
|
Posted: Wed Jan 31, 2007 10:22 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|