Run a SSH / SFTP server in a Docker container sharing only the folder mounted into the container
Go to file
Knut Ahlers 0370d5b903
Update meta files
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-02-08 15:03:32 +01:00
Dockerfile Beautify startup 2018-02-08 15:03:18 +01:00
LICENSE Update meta files 2018-02-08 15:03:32 +01:00
README.md Update meta files 2018-02-08 15:03:32 +01:00
sshd_config Update sshd_config with current alpine version 2018-02-08 15:02:56 +01:00
start.sh Beautify startup 2018-02-08 15:03:18 +01:00

luzifer-docker / sftp-server

Run a SSH / SFTP server in a Docker container sharing only the folder mounted into the container

Usage

## Build container (optional)
$ docker build -t luzifer/sftp-server .

## Execute curator
$ docker run --rm -ti -v $(pwd):/data -e USER=myuser -e PASS=secretpass luzifer/sftp-server

Notes

  • Default user / password is share / changeme
  • User has UID 1000, so 1000 should be able to read / write files
  • To persist the SSH host keys mount /ssh to a persistent storage