Coder Social home page Coder Social logo

Comments (7)

efrecon avatar efrecon commented on August 22, 2024

I understand, but opening "all" ports (or more) will take a long time, so the range is some sort of a compromise between having enough ports and letting the container start within some sort of reasonable time frame. I don't really know what the best behaviour is here and you have a solution at hand (even though I admit it is a bit confusing...).

Extra thoughts?

from rsshd.

frankhommers avatar frankhommers commented on August 22, 2024

Yeah. I could work with --net=host and move the sshd to another port. I'll check that.

from rsshd.

frankhommers avatar frankhommers commented on August 22, 2024

I tried to run my docker with
docker run -it --rm --net=host --name rsshd -e PASSWORD=secret -v /data/rsshd/keys:/etc/ssh/keys -v /data/clients:/root/.ssh efrecon/rsshd -d -d -d -p 22222

but the -d -d -d and also the -p 22222 do not seem to reach the sshd arguments.

from rsshd.

efrecon avatar efrecon commented on August 22, 2024

hm.. Will have to look into this in more details then. You are welcome to debug if you want, arguments from the command should be passed to sshd as the last line of the entrypoint called sshd.sh.

from rsshd.

frankhommers avatar frankhommers commented on August 22, 2024

Yeah I have seen that. Just a simple echo "$@" at the beginning of the sshd.sh will not show anything. I wonder if there is anything wrong with my installation.

from rsshd.

frankhommers avatar frankhommers commented on August 22, 2024

The arguments don't work on my Synology as well as my MacBook. I'll just build my own docker to my specific needs.

from rsshd.

frankhommers avatar frankhommers commented on August 22, 2024

BTW: Exposing all ports (1-65535) works just fine and fast. As long as you don't -p them all, there is nothing wrong with this.

BTW2: ENV ARGS also works nice for me.

I can put it in a PR if you like. But I can also just fork it and roll my own ;-)

from rsshd.

Related Issues (4)

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.