Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have created a user account on my Ubuntu machine.

I want that user to be able to login with SSH. I guess I have to set some permissions in some file.

Googling for "SSH permissions" or "Setting SSH permissions" doesn't seem to find any useful answers.

share|improve this question

1 Answer 1

If you have sshd running, the user will be able to login via ssh by default.

share|improve this answer
    
I assumed so, I can login with SSH (either pwd or ss-key) with other accounts (someone else set that up), but not with this one. So I guess I'm confused. –  Ankur Aug 25 '11 at 5:48
    
I tried it anyway, got it started (it probably already was), now I am getting this error 'Permission denied, please try again.', which is what I got before. –  Ankur Aug 25 '11 at 5:50
1  
Is "this one" root ? If so, check in file sshd_config (usually located in /etc/ssh) if PermitRootLogin is not set to no. Otherwise you can also check in the same file if there is a AllowUsers directive (which defines which users are allowed to login, like the name suggests). –  wildpeaks Aug 25 '11 at 5:52
    
Thanks, actually there is an AllowGroups directive. I had to add the user to the sshusers group. Done. It works, thanks. –  Ankur Aug 25 '11 at 6:04

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.