Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 W. 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 at 9:45
add comment

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

Then restart ssh:

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

Your Answer

 
discard

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.