How do I create one user without key authentication?

I've completed the following steps:

  1. I have configured Ubuntu server with Key authentication and it is working fine.
  2. I have disabled password authentication for key authentication to work.
  3. The server is always accessed via remote terminals or putty.

Now all user accounts are able to log in with the authentication key and pass phrase, but now I want to create only one new user without key authentication. So how should I go about it?

On the other hand, this should not hamper other users who are using key authentication.


Solution 1:

Assuming that you mean that you want to permit a particular user to use a password when nobody else can, add the following to the bottom of your /etc/ssh/sshd_config file:

Match User rishee
    PasswordAuthentication yes
    KbdInteractiveAuthentication yes

Then restart ssh:

sudo service ssh restart