Restricted SSH server. This image is meant to be used together with the httpd:2.4 image
1M+
Restricted SSH server which allows SCP / SFTP / RSYNC access only. This image is meant to provide an ability to update content in data containers. You would normally make a constellation of your service, a data container, and the scp-server container.
The scp-server container is configured at runtime with environment variables to match the configuration of the main service. The environment variables are:
data account. Defaults to 33.data group. Defaults to 33.Original code and idea is from https://github.com/gituser173/docker-scp-server.
It is easiest if you use docker-compose. Then you can specify the authorized SSH keys in a block declaration:
docker-compose.yml file:
scpserver:
image: eeacms/scp-server
ports:
- <PORT>:22
environment:
AUTHORIZED_KEYS: |
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA4FhFro3H....vg0hrC3s0= My First CERT
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAteQ38qb7....uC839w== Second authorized key
DATADIR: /usr/local/apache2/htdocs
USERID: 500
GROUPID: 500
volumes_from:
- htdocs
httpd:
image: httpd
ports:
- 80:80
volumes_from:
- htdocs
htdocs:
image: tianon/true
volumes:
- <DATADIR>:/usr/local/apache2/htdocs
When started you can upload data into the container (e.g. via scp) as the data user:
scp -P <PORT> <FILE> data@<DOCKER-HOST>:
sftp -P <PORT> data@<DOCKER-HOST>
rsync --rsh="ssh -p <PORT>" <FILE> data@localhost:
Content type
Image
Digest
Size
67.5 MB
Last updated
over 10 years ago
docker pull eeacms/scp-server