Server Fault is a question and answer site for system and network administrators. 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 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

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


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.