Sign inSign up

esnunes/sftpd

By esnunes

•Updated about 10 years ago

Docker SFTP server image

Image
0

1.1K

esnunes/sftpd repository overview

⁠esnunes/sftpd - Docker SFTP server

This Docker image is a simplified version of atmoz/sftp⁠ based on Alpine Linux⁠.

Although it is a simplified version you can rely on most of the documentation of atmoz/sftp.

⁠Usage

The users are created during the first start of the container. In case you want to add more users you will have to remove current container and create it again.

During start server ssh keys are generated and copied to volume /keys in case you don't mount a volume a new set of keys will be generated invalidating the known_hosts reference.

# load users from /etc/sftp-users
docker run --ti -d -v /data/sftp-home:/home -v /data/sftp-keys:/keys \
  -v /path/to/sftp-users.conf:/etc/sftp-users.conf -p 22:22 esnunes/sftpd
# load user from arguments
docker run --ti -d -v /data/sftp-home:/home -p 22:22 esnunes/sftpd
myuser:mypass:1001 otheruser:otherpass:1002

⁠sftp-users.conf format

One user per line using the following pattern: username:password:uid[:gid].

Tag summary

Content type

Image

Digest

Size

4.6 MB

Last updated

about 10 years ago

docker pull esnunes/sftpd