So I followed the tutorial to create a new user, so I can de-activate the default user pi.
Everything worked, the user is created and added to adm and sudo groups.
I can also switch to the new user in the active ssh session by typing su <username>. Then it asks for the password and everything works here.
However when I start a new PuTTY session and try to login with the new user credentials it says access denied.
I'd be pulling my hair out, if I had any left! Any help with this would be greatly appreciated!
Newly created User can't login via SSH
Re: Newly created User can't login via SSH
I just finally found the solution! Adding the new user to group ssh fixed it!
sudo gpasswd -a <newuser> ssh
YAY!
sudo gpasswd -a <newuser> ssh
YAY!
-
- Posts: 11
- Joined: Fri Jul 22, 2022 2:09 pm
Re: Newly created User can't login via SSH
Glad you got it working