Skip to content

About Servers

ENiGMA½ runs two kinds of server, and the distinction matters because they are configured in different blocks and do different jobs.

A login server is a way for a person to reach your board — it carries a terminal session, hands the user to a first menu, and from there they are on the BBS. Configured under loginServers in config.hjson.

ServerDefault portNotes
Telnet8888Enabled by default. Not secure — credentials cross the wire in the clear
SSH8889Encrypted, supports public key authentication. Needs a host key generated first
WebSocket8810 / 8811Browser access, paired with a client such as VTX

Features that require a secure connection — 2FA/OTP enrolment, uploading an SSH public key — are available over SSH and secure WebSocket, and deliberately blocked over plain Telnet.

general.maxConnections caps how many callers can be on at once, across every login server (0, the default, means no limit). A caller who connects while the board is full is not given a node, and is turned away with All nodes are busy. Try again later…, or the text of an optional BUSY.ASC art file in the pre-login theme, the default theme or art/general (see Busy Message):

  • Telnet: the message, then the connection is closed.
  • SSH: there is no terminal before login, so the message is shown at the login stage (keyboard-interactive, with no prompt), then the connection is closed. Whether the caller sees it is up to the client. OpenSSH shows it only when it has a terminal: run without one (ssh host command, a script, BatchMode) it hides the text unless run with -v, and the caller sees only the disconnect or “Permission denied”. A client that does not do keyboard-interactive is disconnected without the message. A refused connection is ended after 10 seconds whatever it is doing, and its socket closed outright 2 seconds after that if the caller has not closed it.
  • WebSocket: the message, then the WebSocket is closed with code 1013 (Try Again Later).

Each refusal is logged at info level (“All nodes are busy; refusing connection”). A caller who is turned away never takes a node, not even while the SSH message is being shown. A caller who is let in takes one as soon as it connects; over SSH that is before it has logged in, so an SSH connection that has not reached the shell within loginServers.ssh.loginTimeoutSeconds (120 by default) is disconnected and its node freed; see SSH Login Timeout.

general: {
maxConnections: 10
}

A content server exposes parts of the board without a terminal session — message areas to a newsreader, files to a browser, your system to the Fediverse. Configured under contentServers.

ServerDefault portExposes
Web8080 / 8443Temporary file download links, password reset pages, static files, and the routes other handlers register
Gopher8070Message conferences and areas, plus anything in your Gopher hole
NNTP8119 / 8563Message conferences and areas to newsreaders

Two further pieces build on the web server rather than standing alone: the REST API, and the web handlers that add routes — including WebFinger and ActivityPub for Fediverse federation.

At minimum, one login server, or nobody can call. Everything under content servers is opt-in, and every one of them defaults to disabled.

The one that repays enabling early is the web server: password reset links and temporary file download URLs both depend on it, and those are features users notice missing.