enigma-bbs/docs/servers/ssh.md

40 lines
1.6 KiB
Markdown
Raw Normal View History

---
layout: page
title: SSH Server
---
## Generate a SSH Private Key
To utilize the SSH server, an SSH Private Key will need generated. From the ENiGMA installation directory:
```bash
openssl genrsa -des3 -out ./config/ssh_private_key.pem 2048
```
You then need to enable the SSH server in your `config.hjson`:
```hjson
{
loginServers: {
ssh: {
2018-11-05 03:14:54 +00:00
enabled: true
port: 8889
2018-03-29 22:29:03 +00:00
privateKeyPem: /path/to/ssh_private_key.pem
2018-11-05 03:14:54 +00:00
privateKeyPass: YOUR_PK_PASS
2018-03-29 22:29:03 +00:00
}
}
}
```
### SSH Server Options
| Option | Description
|---------------------|--------------------------------------------------------------------------------------|
2018-11-05 03:14:54 +00:00
| `privateKeyPem` | Path to private key file.
| `privateKeyPass` | Password to private key file.
| `firstMenu` | First menu an SSH connected user is presented with.
| `firstMenuNewUser` | Menu presented to user when logging in with `users::newUserNames` in your config.hjson (defaults to `new` and `apply`).
| `enabled` | Enable/disable SSH server.
| `port` | Configure a custom port for the SSH server.
| `algorithms` | Configuration block for SSH algoritms. Includes arrays with keys of `kex`, `cipher`, `hmac`, and `compress`. See the algorithms section in the [ssh2-streams](https://github.com/mscdex/ssh2-streams#ssh2stream-methods) documentation for details. For defaults set by ENiGMA½, see `core/config.js`.
| `traceConnections` | Set to `true` to enable full trace-level information on SSH connections.