Repository navigation
SSH
Callers can connect to the text BBS over SSH, with encryption. They log
in with their BBS password or with a key. Modern BBS terminals
(SyncTERM, NetRunner, MagiTerm) and a plain ssh client all use SSH.
Telnet and rlogin send passwords in clear text, but SSH does not.
[listen ssh]
type = ssh
address = :2222ssh -p 2222 alice@bbs.example.org
| SSH user | Logs in with | Then |
|---|---|---|
| the name of a user | the BBS password of the user (SSH password or keyboard-interactive) |
the main menu |
| the name of a user | one of the keys of the user | the main menu |
new |
nothing | the login prompt of the BBS: NEW to sign up (only when new_users = yes) |
For a name with spaces, use _ or . in place of the spaces
(Alice_Smith). Names are not case-sensitive. Incorrect passwords count
against the address of the caller, as on a terminal (fail_delay and
throttling). A locked account cannot log in with a password or with a
key.
Users add their own keys in one of these ways:
- On the text BBS, in Your profile (
K), after they type their password again. For an account that dmodem-login made, this is the dmodem-login password or a sign-in code. - Through the HTTP API, with
POST /api/v1/me/keysand the session token of a login (not an API key).
The sysop can also add keys:
bbs sshkey add alice ~alice/.ssh/id_ed25519.pub # each line of the file (- : stdin)
bbs sshkey list [USER]
bbs sshkey del ID
The BBS accepts ed25519, ECDSA (also the security-key sk- types) and
RSA keys of 2048 bits or more. It does not accept DSA. A key belongs to
one user only. A user can have up to 20 keys. Keys have no options
(command=, from=). The log records each key that a user adds,
deletes or uses to log in, by its SHA-256 fingerprint.
The listener offers only a terminal session: a shell request, with a pty if the client asks for one. The terminal type and size of the pty go to the text BBS, as for telnet. For example:
-
xterm-256colormeans ANSI and UTF-8. -
ansiandsynctermmean ANSI and CP437. - For a type that the BBS does not know, the BBS asks the caller.
ansi, utf8 and sixel on the listener set these values, as they do
on telnet. The listener refuses these items: commands (ssh host ls),
SFTP and SCP, port and agent forwarding, X11 and a second session on the
same connection. If the caller changes the size of the window, the size
of the session does not change.
After a client connects, it has 30 seconds to ask for its shell.
max_per_ip sets the limit of connections from one address, as on
telnet.
host_keys = /etc/bbs/ssh_host_ed25519_key /etc/bbs/ssh_host_rsa_keyBy default, the listener uses an ed25519 key and an RSA key adjacent to
the database, ssh_host_ed25519_key and ssh_host_rsa_key. If they are
not there, the listener creates them (mode 0600) when it starts for the
first time. The log and bbs check show their fingerprints. Keys from
ssh-keygen (OpenSSH or PEM format, without a passphrase) also operate.
If a key file is not there, the listener creates a key of the type that the file name gives:
- RSA (3072 bits) if the name contains
rsa. - ECDSA P-256 if the name contains
ecdsa. - ed25519 for all other names.
As sshd does, the BBS refuses a key file that other users can read.
legacy = yesThis setting adds some algorithms to the usual algorithms: the
aes128-cbc and 3des-cbc ciphers and the 1024-bit
diffie-hellman-group1-sha1 key exchange. These algorithms are for old clients that have no newer
algorithms (old SyncTERM and PuTTY builds, cryptlib). These algorithms
are weak, and bbs check gives a warning about them. Without legacy,
the server offers curve25519, ECDH and DH of 2048 bits or more, with
AES-GCM, ChaCha20-Poly1305 and AES-CTR.
See also: Configuration, Security, HTTP API
These pages are in the docs/wiki folder of the repository. Change them there, not here.
Start here
- Building
- Running
- Administration
- Sysop tools
- Configuration
- Configuration reference
- Databases
- Backups
- Customization
- Scripting
- Access levels
Callers
Features
- Message areas
- Writing messages
- Offline mail (QWK)
- Files and FTP
- File transfers
- Doors
- Newsgroups and NNTP
- FidoNet
- Chat and paging
- IRC
- IRC server linking
- AIM and ICQ
- AOL clients
- MSN Messenger
- MSN Classic (1995)
- MSN 2.x (1996)
- Yahoo! Messenger
- MRC
- News, weather and quotes
- Finger, gopher and Gemini
- Time: NTP, NTS and PTP
- DNS for callers
- Web forum
- Image boards
- HTTP API
More