Restricted SSH server in a Docker container which allows SCP / SFTP access only
10K+
Restricted SSH server which allows SCP / SFTP access only.
Put your authorized keys in an ENV variable and run the image:
AUTHORIZED_KEYS=$(base64 -w0 my-authorized-keys)
docker run -d -e AUTHORIZED_KEYS=$AUTHORIZED_KEYS -p <PORT>:22 -v <DATADIR>:/home/data schoolscout/scp-server
Now you copy into the container (e.g. via scp) as the data user:
scp -P <PORT> <FILE> data@<DOCKER-HOST>:
Content type
Image
Digest
sha256:9835b0824…
Size
66.9 MB
Last updated
about 11 years ago
docker pull gituser173/docker-scp-server