Skip to content

feat: implement SSH algorithms mapping and refactor cipher usage acro…#627

Open
Chakyiu wants to merge 1 commit intoTermix-SSH:mainfrom
Chakyiu:fix/ssh2-ssl-supported-cipher-mapping
Open

feat: implement SSH algorithms mapping and refactor cipher usage acro…#627
Chakyiu wants to merge 1 commit intoTermix-SSH:mainfrom
Chakyiu:fix/ssh2-ssl-supported-cipher-mapping

Conversation

@Chakyiu
Copy link

@Chakyiu Chakyiu commented Mar 16, 2026

…ss SSH modules

Overview

Short summary of what this PR does

  • Added: src/backend/utils/ssh-algorithms.ts with a SSH_ALGORITHMS constant whose cipher list is filtered at module load time by ssh2.
  • Fixed: chacha20-poly1305@openssh.com get excluded from the support list. Instead it maps to 'chacha20'.

Changes Made

ssh2 builds its supported cipher list at startup using crypto.getCiphers(). It maps 'chacha20-poly1305@openssh.com' to the OpenSSL name 'chacha20'. In Electron's bundled Node.js, 'chacha20' isn't in crypto.getCiphers() (unlike the system Node.js used in dev mode), so chacha20-poly1305@openssh.com gets excluded from the supported list.

Related Issues

None

Screenshots / Demos

Open in Server Stats Error

4:50:56 PM Starting metrics collection
4:50:56 PM Resolving DNS for nowservice.cc
4:50:56 PM Connecting to xxx.com:22
4:50:56 PM Initiating SSH handshake
4:50:56 PM Authenticating with SSH key
4:50:56 PM Failed to start metrics: Unsupported algorithm: chacha20-poly1305@openssh.com

Checklist

  • Code follows project style guidelines
  • [] Supports mobile and desktop UI/app (if applicable)
  • I have read Contributing.md
  • This is not a translation request. See docs

@Impaler67
Copy link

I got this issue and cannot connect to any of my servers. Any shortcuts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants