Create user on openssh-server container

Hi, Iā€™d like to create another user in the openssh server container and login as that user.

useradd -m -G users foo

The new user has a different UID and when I try to ssh as it I get the following error in the logs:

> Failed to set uids to 1000.

And the connection is immediately closed.

What is the correct way to setup a new user to use to login with, on this image? :slight_smile:

The image is designed for a single user. For a second user, you can create a second container.

1 Like

Understood, thank you for the quick response!

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