SSH a user inside container

Hello,

I would like to know if it is possible to use ssh over a container in order to access a local user (over the same container).
I used ssh-keygen to generate a new key over root and over user. Also i copied the root public key towards the authorized-keys file of user but this isn’t working.
Also i changed the SSH keys permissions.

Thanks in advance