fpiesche / docker-sftp-server Goto Github PK
View Code? Open in Web Editor NEWDockerised sftp server based on Alpine.
Dockerised sftp server based on Alpine.
Hi,
the docker container doesn't start out of the box.
The log output looked as followed:
sftp-server | Launching sshd
sftp-server | /etc/ssh/sshd_config: No such file or directory
After copying the sshd_config file manually into my config volume, it worked, but the next error occurred:
sftp-server | Error checking authentication key CENSORED in revoked keys file /etc/ssh/revoked_keys: No such file or directory
So I created revoked_keys as well.
My docker-compose file looks as followed:
version: '2'
services:
sftp-server:
image: florianpiesche/sftp-server
container_name: sftp-server
ports:
- "2221:22"
volumes:
- ./config:/etc/ssh/
- ./init:/etc/sftp.d/
- ./authorized-keys:/authorized_keys/
restart: always
The file structure as followed:
├── authorized-keys
│ └── user.pub
├── config
│ ├── revoked_keys
│ ├── sshd_config
│ ├── ssh_host_ed25519_key
│ ├── ssh_host_ed25519_key.pub
│ ├── ssh_host_rsa_key
│ └── ssh_host_rsa_key.pub
├── docker-compose.yml
└── init
Is there a way to restrict the access between user-folders?
If I have multiple users each of their home directories will be created correctly.
But if I sftp into one of them and go one level back via cd ..
, I can easily change to another home directory.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.