SSH allow public keys only
Hello.
Is there a way to configure the SSH deamon to _only_ accept connetions via public keys? Meaning that if someone tries to SSH into a linux box and their computer doesn't have a valid key then they won't even get a login prompt? I've not had any luck searching the forums for this one, and the sshd_config man page hasn't helped. Thanks. |
This is from man sshd_config
PasswordAuthentication Specifies whether password authentication is allowed. The default is "yes". |
well, i think what you need is SSH with Protocol 2...
|
You need at least:
Code:
PasswordAuthentication no Code:
ChallengeResponseAuthentication no PS you should always turn off SSHv1: Code:
Protocol 2 |
Thanks chort. Your suggestions worked!
Now only users with a key are allowed to get in. Thanks! |
All times are GMT -5. The time now is 08:35 AM. |