Comments (4)
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.
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.
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.
solved I guess
from sshttp.
Related Issues (17)
- sshttp can't open connection to the real server HOT 3
- Trying to compile sshttp in ubuntu 16.04, fatal errors
- sshttp with pppoe HOT 20
- Domain Fronting? HOT 1
- sshttpd[2818]: sshttp::loop::NS_Socket::dstaddr::getsockopt:Protocol not available HOT 8
- iptables: No chain/target/match by that name HOT 5
- Connection reset while detecting protocol.
- bind_local::bind ... address already in use HOT 3
- getsockopt: No such file or directory HOT 5
- Add a license HOT 2
- sshttp uses a lot of resources HOT 2
- cpu reachs 100% HOT 3
- add option to write pid to file HOT 1
- mid-function includes break compile on Ubuntu 16.04 HOT 3
- Bug in error output HOT 1
- Does not work at all under unpriveleged LXC HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sshttp.