Git Product home page Git Product logo

Comments (4)

aureq avatar aureq commented on May 23, 2024

The reason is because to bind to a port < 1024, you must be "root". Please note that it's a feature from the OS rather than a bug in sshttp.
Feel free to give it a try with a higher port so you can see the difference.

from sshttp.

jkluch avatar jkluch commented on May 23, 2024

The reason is because to bind to a port < 1024, you must be "root"

Right. That's why I tried sudo and authbind because they should allow me to use restricted ports. I've tried random ports above 1024 but I get

sshttpd: Using HTTP_PORT=8080 SSH_PORT=22 and local port=5050. Going background.
Using caps/chroot.
Operation not permitted

which is similar to what I get when using authbind and port 443.

If I use sudo the output is still the same

sshttpd: Using HTTP_PORT=8080 SSH_PORT=22 and local port=5050. Going background.
Using caps/chroot.
chroot: No such file or directory
chroot: No such file or directory

I have an http server running on 80 and ssh on 22 so I'm not sure why I can't get this to run

from sshttp.

stealth avatar stealth commented on May 23, 2024

Yes, you need to run sshttp as root. it will then drop to specified user (default nobody)
and chroot to /var/lib/empty. Either create that directory, or use -R to specify another one.

from sshttp.

stealth avatar stealth commented on May 23, 2024

solved I guess

from sshttp.

Related Issues (17)

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.