Userbased ssh auth. methods

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

Threaded View

is it possible to select the allowed auth. methods per user and not
global ? For example john=password,rsa-key / kate=rsa-key , aso.

Re: Userbased ssh auth. methods

On 2007-08-30,
Quoted text here. Click to load it

Depends on the software and version.  If it's a recent OpenSSH (4.6 and
up) then you can do this with the Match directive in sshd_config, eg

PasswordAuthentication no
PubkeyAuthentication yes

Match User john
    PasswordAuthentication yes

This sets a default of password=no, pubkey=yes but overrides the
password setting for john.

Other SSH implementations may also be able to do it but the details will

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline