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.
Sysop: | CyberNix |
---|---|
Location: | London, UK |
Users: | 18 |
Nodes: | 10 (0 / 10) |
Uptime: | 53:39:27 |
Calls: | 819 |
Files: | 3,532 |
Messages: | 556,937 |