Sign inSign up

rpdiep/sftp

By rpdiep

Updated about 9 years ago

An sftp container, based on atmoz/sftp ( https://hub.docker.com/r/atmoz/sftp/ )

Image
0

10K+

rpdiep/sftp repository overview

Securely share your files

Easy to use SFTP (SSH File Transfer Protocol) server with OpenSSH. This is an automated build linked with the alpine repositories.

Usage

  • Required: Environment variables user, uid and either pwhash or auth_keys

Example

docker run -p 22:22 -d RPDiep/sftp -e "user=foo" -e "pwhash=<password hash>" -e "uid=1000"

Logging in

The OpenSSH server runs by default on port 22, and in this example, we are forwarding the container's port 22 to the host's port 2222. To log in with the OpenSSH client, run: sftp -P 2222 foo@<host-ip>

Tip: you can use RPDiep/makepasswd to generate encrypted passwords:
echo -n "your-password" | docker run -i --rm RPDiep/makepasswd --crypt-md5 --clearfrom=-

Logging in with SSH keys

Simply fill the auth_keys environment variable with a base64 encoded string containing the authorized_keys file content

Tag summary

Content type

Image

Digest

Size

5 MB

Last updated

about 9 years ago

docker pull rpdiep/sftp