-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Description
After running dnstm-setup with SSH tunnel user configuration, some SSH clients (notably Bitvise and some older clients) fail to connect with this negotiation error:
kex error: no match for method mac algo client->server
Observed cause:
- dnstm-setup runs sshtun-user configure during SSH setup.
- sshtun-user hardening may set MACs to ETM-only: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com
- Some clients offer: hmac-sha2-256,hmac-sha2-512,hmac-sha1
- No intersection causes handshake failure.
Expected:
- Keep strong defaults but allow practical compatibility with common clients.
Proposed fix:
- Add SHA2 fallback MACs (non-ETM) while keeping ETM first: hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha2-512
- Apply only when sshtun-user generated ETM-only line is detected.
- Validate sshd config before reload.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels