/temp-sftp

Dockerised SFTP server for secure, contained file transfers

Primary LanguageShellMIT LicenseMIT

Temporary SFTP Server

Useful for allowing people to remotely access a contained system for securely transferring files

Usage

The following command opens the server on TCP port 2222 of the host, mounting an SSH public key and the chroot directory. A user called testUser is created.

docker run --rm -itdp 2222:22 \
    -v ${HOME}/.ssh/id_rsa.pub:/keys \
    -v ${PWD}/data:/srv \
    muirlandoracle/temp-sftp:latest -u testUser -k

Users will then be able to access the server with sftp -P 2222 testUser@IP