Skip to content

Restricted SSH server in a Docker container which allows SCP / SFTP access only

Notifications You must be signed in to change notification settings

kosztyua/docker-scp-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-scp-server

Restricted SSH server which allows SCP / SFTP access only.

Running

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>:

About

Restricted SSH server in a Docker container which allows SCP / SFTP access only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 77.2%
  • Makefile 22.8%