Base Docker Image
To launch it and have your share listen on port 2022, just type:
docker run -d -p 2022:22 -e USER=myuser -e PASS=myverysecretpassword luzifer/sftp-share
Nice work !
I am using it with docker-compose. Do you have an easy way to Encrypt the user password in the file ?
@azcto: You should be able to just put a
.ssh directory into the directory mounted to
/data/ with an
authorized_keys file. Those keys should be able to log into the container.
How can we use SSH key without password to login?
This didn't work for me. The Ubuntu MOTD seems to interfered with the protocol; even after disabling (through logging into running container and disabling MOTD) it still didn't work. atmoz/sftp worked for me for others looking for a quick solution.