Newly created User can't login via SSH

If you need any help or would like to discuss our episodes please ask in here.
Post Reply
UTK
Posts: 2
Joined: Tue Sep 13, 2022 8:40 pm

Newly created User can't login via SSH

Post by UTK »

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!
UTK
Posts: 2
Joined: Tue Sep 13, 2022 8:40 pm

Re: Newly created User can't login via SSH

Post by UTK »

I just finally found the solution! Adding the new user to group ssh fixed it!

sudo gpasswd -a <newuser> ssh

YAY!
addicted2tech
Posts: 11
Joined: Fri Jul 22, 2022 2:09 pm

Re: Newly created User can't login via SSH

Post by addicted2tech »

Glad you got it working :)
Post Reply