Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
I think what you're running into is the issue of using key based auth only. The only way I know of to allow non-key-auth is with passwords, or Kerberos stuff (which can be tricky to set up). By enabling key-only auth, you've effectively prevented non-key-auth from working. – Thomas Ward Aug 2 '12 at 13:15
Yes non-key auth is completely disabled and not working, it is tested. – Rishee Aug 2 '12 at 14:55
You should not SSH login without password to a root user, very dangerous. You should ssh to a normal user and use su to become root. – Blanca Higgins Mar 29 '14 at 9:45
up vote 5 down vote accepted

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
    KbdInteractiveAutentication yes

Then restart ssh:

sudo service ssh restart
share|improve this answer
Yes pal... you got it right. Thanks mate :) – Rishee Apr 1 '14 at 3:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.