Try this:
sudo setcap CAP_NET_BIND_SERVICE=+ip /mystic/mis
sudo setcap CAP_NET_BIND_SERVICE=+ip /mystic/mis
must be more to this line,tried and got this
pi@raspberrypi:~ $ sudo setcap GAP_NET_BIND_SERVICE=+ip /mystic/mis
fatal error: Invalid argument
usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
pi@raspberrypi:~ $ sudo setcap GAP_NET_BIND_SERVICE=+ip /mystic/mis
fatal error: Invalid argument
usage: setcap [-q] [-v] (-r|-<caps>) <filename> [ ... (-r|-<capsN>) <filenameN> ]
Possibly my mistake as I can only sometimes paste into Syncterm, so I
was retyping that comment. Use single-quotes. Try:
sudo setcap 'cap_net_bind_service=+iep' /mystic/mis
Try it like this..
sudo setcap 'cap_net_bind_service=+ep' mis
in your mystic directory. That command works for me, anyway.
when i did this said /mystic/mis couldn't find the /mystic/misb dir
my mystic is in /home/pi/mystic
sudo setcap 'cap_net_bind_service=+ep' mis
in your mystic directory. That command works for me, anyway.
I did try it no errors, just went back to prompt as thought it
worked but no change to the opening the port in ./mis -server
still the same.
Oh I see; that'd be the issue -- you're installing this in a different directory.
Point it to wherever mis is. In your case, likely:
sudo setcap 'cap_net_bind_service=+iep' /home/pi/mystic/mis
When I did this, it did not return any kind of message. But once I did it, the ssh server was able to bind to the port.
Alternately you can move the SSH port over 1024, in which case you shouldn't even have to do this.
sudo getcap mis, in your mystic directory.
If there are still errors there must be something wrong. Maybe the port
is already in use?
I have the network no pointing to 22 in router and tried to connect but was refused so what else do I have to do to login to my bbs/linux.
the settings for your ssh server.
IPV4 Adapter 0.0.0.0
IPV6 Adapter ::
Port 22
That's what mine looks like.
Yes that worked, now can ssh into my bbs, thank you very much for you help with setting up ssh for me.
sudo setcap 'cap_net_bind_service=+iep' /home/pi/mystic/mis
Yes that worked, now can ssh into my bbs, thank you very much for you help with setting up ssh for me.
No problem Sneaky, any time.
It was actually DustCouncil that hooked you up with the setcap command.
I was just commenting.. :)
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,064 |
Nodes: | 17 (1 / 16) |
Uptime: | 18:21:45 |
Calls: | 501,325 |
Calls today: | 4 |
Files: | 109,413 |
D/L today: |
2,077 files (301M bytes) |
Messages: | 302,012 |