Forcing User to use Keys

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've generated keys for a user, and successfully ssh-ed into a server
using the key and passphrase.  Is it possible to force a user to use
the keys?  For example, if I tell my ssh-client not to use the keys,
I'm still prompted with a login prompt on the server.

Alvin Liau

Re: Forcing User to use Keys

Quoted text here. Click to load it

Per user?  I don't know of a way.

You could destroy the real password for that user so that it's not
possible for a password to succeed, or you could run separate ssh
servers, one with "PasswordAuthentication=no".  Then have PermitUser and
DenyUser on the two servers?

Darren Dunham                                 
Senior Technical Consultant         TAOS   /
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

Site Timeline