Code Monkey home page Code Monkey logo

docker-sftp-server's People

Contributors

dependabot[bot] avatar fpiesche avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

floyer007

docker-sftp-server's Issues

Missing config files

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

Right restriction between users

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.