Make a SSH User for 1 Container?

I’m wan’t to make a ssh user that only can join directly in 1 container that I have.
Is this possible? How can I do that?


1 Like

Why do you want to do this? If you want to spawn a shell in a container, why not use docker exec?

I want to make a user only for 1 docker container, for example a employee that have access only in 1 container not in all.