Link to home
Start Free TrialLog in
Avatar of Balbir Singh
Balbir SinghFlag for United States of America

asked on

Restrict how many times freeBSD asks for right password if someone gives wrong password.

During the keyboard based password authentication if we provide wrong password then freeBSD system ask for password 3 times before giving it up. Is there a way I can restrict it to just 1 ? Like if someone give wrong password then no login, no need to ask again. TIA
ASKER CERTIFIED SOLUTION
Avatar of Dr. Klahn
Dr. Klahn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Balbir Singh

ASKER

Thanks a lot, it really helps me and I am able to restrict max authentication to just 1

now when someone is denied access just after 1st attempt then I get below message on the screen
Received disconnect from xx.xx.xx.xx port 22:2: Too many authentication failures
Disconnected from xx.xx.xx.xx port 22

Open in new window


Is there a way I can silence this message after after unsuccessful authentication?
also is it possible to not mask what user is typing on the screen in the password prompt? like if password is 'secret' then in the terminal it should be visible while typing.

I know the security risk but just wanted to know if it is doable?