mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 18:24:51 +09:00
Document running the SSH server on port 22
This commit is contained in:
parent
878f853520
commit
0d3ccb3a38
2 changed files with 13 additions and 2 deletions
10
INSTALL.md
10
INSTALL.md
|
@ -115,6 +115,16 @@ Build.
|
||||||
|
|
||||||
$ stack build
|
$ stack build
|
||||||
|
|
||||||
|
For convenience, at least on actual deployments, you may wish to run the Vervis
|
||||||
|
SSH server on port 22, so that people don't have to specify a custom port. For
|
||||||
|
that to work, the user that runs the Vervis server needs to get permission to
|
||||||
|
bind to ports below 1024. There are several ways to do that. One of them is to
|
||||||
|
use file capabilities to give the Vervis executable the permission to bind to
|
||||||
|
such ports (if you prefer not to trust the code, try one of the other methods,
|
||||||
|
such as sudo):
|
||||||
|
|
||||||
|
$ sudo setcap CAP_NET_BIND_SERVICE=+ep `stack exec which vervis`
|
||||||
|
|
||||||
Run.
|
Run.
|
||||||
|
|
||||||
$ stack exec vervis
|
$ stack exec vervis
|
||||||
|
|
|
@ -48,10 +48,11 @@ time of writing, I'll try to keep this little tutorial up to date)!
|
||||||
links for creating these
|
links for creating these
|
||||||
5. You can browse all the projects and repos hosted on the instance.
|
5. You can browse all the projects and repos hosted on the instance.
|
||||||
6. Add the following to your `~/.ssh/config` file, or create it if doesn't
|
6. Add the following to your `~/.ssh/config` file, or create it if doesn't
|
||||||
exist:
|
exist. To be honest I'm not sure it's still required, and haven't tested
|
||||||
|
yet. If you find that this step is unnecessary and everything works without
|
||||||
|
it, let me know :)
|
||||||
|
|
||||||
Host dev.angeley.es
|
Host dev.angeley.es
|
||||||
Port 5021
|
|
||||||
ControlMaster no
|
ControlMaster no
|
||||||
ForwardAgent no
|
ForwardAgent no
|
||||||
ForwardX11 no
|
ForwardX11 no
|
||||||
|
|
Loading…
Reference in a new issue