Posted by: sysblog | Wednesday, 14th May 2008

Ubuntu: Permission Denied Error via SSH after Creating new User on Command Line

After I created a new user testuser


sudo adduser testuser

I couldn log in this new user via


ssh newuser@localhost

SSH told me “Permission denied, please try again.” If I’d only switch users with


su - newuser

login was granted. So I had a look at


sudo vim /etc/ssh/sshd_config

and looked for


AllowUsers

and appended the new user in that line. Now I needed to reload (in case you are logged in via ssh) the server:


sudo /etc/init.d/ssh reload

and access is granted!

Ressources

  • None ;)

Leave a response

Your response:

Categories