# SSH a user inside container

**URL:** <https://forums.docker.com/t/ssh-a-user-inside-container/70699>\
**Category:** General\
**Tags:** docker\
**Created:** [March 8, 2019, 5:08pm UTC](https://forums.docker.com/t/ssh-a-user-inside-container/70699 "2019-03-08T17:08:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![05101992](https://avatars.discourse-cdn.com/v4/letter/0/74df32/32.png) [@05101992](https://forums.docker.com/u/05101992)\
**Post date:** [March 8, 2019, 5:08pm UTC](https://forums.docker.com/t/ssh-a-user-inside-container/70699/1 "2019-03-08T17:08:32Z")

</div>

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
