An sftp container, based on atmoz/sftp ( https://hub.docker.com/r/atmoz/sftp/ )
10K+
Dockerfile linksEasy to use SFTP (SSH File Transfer Protocol) server with OpenSSH. This is an automated build linked with the alpine repositories.
user, uid and either pwhash or auth_keysdocker run -p 22:22 -d RPDiep/sftp -e "user=foo" -e "pwhash=<password hash>" -e "uid=1000"
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=-
Simply fill the auth_keys environment variable with a base64 encoded string containing the authorized_keys file content
Content type
Image
Digest
Size
5 MB
Last updated
about 9 years ago
docker pull rpdiep/sftp