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.

link|improve this question

43% accept rate
feedback

1 Answer

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

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

Your Answer

 
or
required, but never shown

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