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








Simon said,
Friday, 3rd Jul 2009 at 16:40
Thanks from me as well!
unkonwn said,
Friday, 3rd Apr 2009 at 17:51
Just what I needed. Thanks.