SSH into your docker instance
Pre-requisites
This documentation aims to set up an SSH server into your Docker container and allows people from outside having a generated SSH private key accessing your EnterMedia instance's filesystem. Have an instance of the EnterMedia EMShare application version 9+ running into a Docker container.
Get the latest version of the entermedia-docker.sh (if you made any changes in this script they will be overwritten):
cd [YOUR-INSTANCE]/NODE && curl -o entermedia-docker.sh -jL docker.entermediadb.org
1. Remove the comment on the following line of your entermedia-docker.sh script
`#-p 22$NODENUMBER:22` \
2. Update the entermediadb9 Docker image and rebuild your container
/[YOUR-INSTANCE]/NODE/update.sh
3. Copy the generated SSH private key on your remote machine
cat [YOUR-INSTANCE]/services/client/.ssh/client.pk
4. Example of configuration needed to remotely access your container
Host my-docker-container Hostname myserver Port 22[INSTANCE-NODE] User client IdentityFile ~/.ssh/[MY-PRIVATEKEY.pk]