New user with openSSH

Hi, I am running a dietpi system on rp4 with openSSH. I have the following issue:
Users that has been added with Dropbear, before changing to openSSH can have and ssh access without an issue, however after the installation of openSSH new user can not login with “Permission denied (publickey,password)” . It is happening after using adduser, useradd or useradd -m commands. I have changed /etc/ssh/ssh_config file adding at the end “Match User newuser
PasswordAuthentication yes”
What do i do wrong or what is the solution? I need the openSSh because i have installed OMV.
Thank you

How you are trying to connect using SSH? Via password or key?

With a password. It worked aleays and it does work for users added before installing openSSh.

This is the file for the client-side config but you wanna config your server, you need to modify /etc/ssh/sshd_config I think :thinking:

Sorry you are right. I did not follow the instructions correctly. I did it now, modified that file but still no way to login.

did you checked the SSH server log?

Not yet, but i have found the following: if i add the group name to the sshd_config file ’ AlloweGroups line that it is working correctly. However i still wonder that the user’s group i have added before changing dropbear to openssh, is not in the list, but i am still able to login. Where do i check the log?

I think i found the solution. The new user needs to be added to the _ssh group than login is not denied.
Thanks for all the input.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.