You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
On Debian 12 (Bookworm) and a default install, the command to generate an SSH key (the one from the docs) generates an unsupported key, which can not be used when SSH is enabled.
To Reproduce
Generate an SSH key with the command from the docs (config.hjson comments):
Expected Behavior
Enigma is started with SSH support.
Actual Behavior
When starting Enigma, the following error is observed:
./main.js
Error initializing: Error: Cannot parse privateKey: Unsupported key format
at new Server (/home/enigma/enigma-bbs/node_modules/ssh2/lib/server.js:249:15)
at SSHServerModule.createServer (/home/enigma/enigma-bbs/core/servers/login/ssh.js:396:23)
at /home/enigma/enigma-bbs/core/listening_server.js:39:36
at /home/enigma/enigma-bbs/core/module_util.js:120:28
at loaded (/home/enigma/enigma-bbs/core/module_util.js:93:20)
at loadModuleEx (/home/enigma/enigma-bbs/core/module_util.js:76:12)
at loadModule (/home/enigma/enigma-bbs/core/module_util.js:90:5)
at /home/enigma/enigma-bbs/core/module_util.js:111:17
at /home/enigma/enigma-bbs/node_modules/async/dist/async.js:2588:44
at eachOfArrayLike (/home/enigma/enigma-bbs/node_modules/async/dist/async.js:506:13)
Error initializing: Error: Cannot parse privateKey: Unsupported key format
at new Server (/home/enigma/enigma-bbs/node_modules/ssh2/lib/server.js:249:15)
at SSHServerModule.createServer (/home/enigma/enigma-bbs/core/servers/login/ssh.js:396:23)
at /home/enigma/enigma-bbs/core/listening_server.js:39:36
at /home/enigma/enigma-bbs/core/module_util.js:120:28
at loaded (/home/enigma/enigma-bbs/core/module_util.js:93:20)
at loadModuleEx (/home/enigma/enigma-bbs/core/module_util.js:76:12)
at loadModule (/home/enigma/enigma-bbs/core/module_util.js:90:5)
at /home/enigma/enigma-bbs/core/module_util.js:111:17
at /home/enigma/enigma-bbs/node_modules/async/dist/async.js:2588:44
at eachOfArrayLike (/home/enigma/enigma-bbs/node_modules/async/dist/async.js:506:13)
Screenshots
Not applicable.
Environment
I am using Node.js v14.x LTS or higher
npm install or yarn reports success
Actual Node.js version (node --version): v18.20.4
Operating system (uname -a on *nix systems): Linux docker01 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux (this isn't a docker container despite hostname)
Revision (git rev-parse --short HEAD): 5e720457
Any additional relevant information about your setup: none
The text was updated successfully, but these errors were encountered:
Describe the Bug
On Debian 12 (Bookworm) and a default install, the command to generate an SSH key (the one from the docs) generates an unsupported key, which can not be used when SSH is enabled.
To Reproduce
config.hjson
comments):enabled: true
in the sectionSSH
./main.js
Expected Behavior
Enigma is started with SSH support.
Actual Behavior
When starting Enigma, the following error is observed:
Screenshots
Not applicable.
Environment
npm install
oryarn
reports successnode --version
):v18.20.4
uname -a
on *nix systems):Linux docker01 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
(this isn't a docker container despite hostname)git rev-parse --short HEAD
):5e720457
The text was updated successfully, but these errors were encountered: