Match directive question

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

Threaded View
Hi all;

In openssh 4.6, with the new Match directive, I need an example.
I have two users, one that I want to only let in with a key  (call her rsakey),
and one I only want to let in with a password (call him pass)
Would it be something like:
Match User rsakey
   RSAAuthentication yes
   PasswordAuthentication no
Match User pass
   RSAAuthentication no
   PasswordAuthentication yes

Would this work?  Is there a site or page that explains this?

Re: Match directive question

Quoted text here. Click to load it


sshd_config(5).  There's also an example in the sshd_config that ships
with 4.6.

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