Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

sftp

Fork of atmoz/sftp:
Simple and easy to use SFTP server based on CentOS

Usage

  • Define users and passwords in comma separated list with SFTP_USERS ("user1:pass1[:uid][:e],user2:pass2[:uid][:e]").
  • Mount volumes in user's home folder.
  • Supports encrypted password and optional UID specification.

The users are chrooted to their home folders, so it is important to mount the volumes in separate folders inside the user's home folder (/home/your-user/your-folder).

Examples

Simple (one user and one folder):

docker run \
    -e SFTP_USERS='foo:123' \
    -v "/sftp/share:/home/foo/share" \
    -p 2222:22 -d atmoz/sftp

Multiple users with specific UIDs and folders:

docker run \
    -e SFTP_USERS='foo:123:1000,bar:abc:1001' \
    -v "/sftp/share:/home/foo/share" \
    -v "/sftp/ebooks:/home/foo/ebooks" \
    -v "/sftp/http:/home/bar/http" \
    -p 2222:22 -d atmoz/sftp

Encrypted password and specified UID:

docker run \
    -e SFTP_USERS='foo:$1$xyz$jAlmRpcFe.aiPOIXET9GG/:1050:e' \
    -v "/sftp/share:/home/foo/share" \
    -v "/sftp/ebooks:/home/foo/ebooks" \
    -v "/sftp/http:/home/bar/http" \
    -p 2222:22 -d atmoz/sftp
Docker Pull Command
Owner
akegata
Source Repository