# Forking swift-nio-ssh to add the RSA support its authors left out

Original title: Adding RSA Support to swift-nio-ssh

> Hacker News story 50476069 · language: en · submitted 2026-11-12
> Web version: https://zeli.app/story/50476069
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 8 · by [moonlighter](<https://news.ycombinator.com/user?id=moonlighter>) · 💬 2
[original](<https://lograker.app/blog/swift-nio-ssh-rsa-support>) · [HN discussion](<https://news.ycombinator.com/item?id=50476069>)

## Summary

LogRaker needed SSH RSA keys, but swift-nio-ssh deliberately supports only modern algorithms, and its private key type offers no extension point. So the team vendored a fork: eight files, a new signature-algorithm name, and a subtle trap where the algorithm string is written in two places that must match byte for byte. The post explains the work, why rsa-sha2-512 is offered without negotiation, and the real cost of vendoring: nobody will warn you about upstream security fixes.

## Key quote

> If they diverge, every byte you send is individually well-formed, the key is correct, the signature is a valid RSA signature, and yet the server rejects it anyway.

---

## Cite

- Page: https://zeli.app/story/50476069
- Date: 2026-11-12
- Source: lograker.app (https://lograker.app/blog/swift-nio-ssh-rsa-support)
- Hacker News: https://news.ycombinator.com/item?id=50476069

## Other languages

- zh: https://zeli.app/zh/story/50476069 · markdown: https://zeli.app/zh/story/50476069.md
- ja: https://zeli.app/ja/story/50476069 · markdown: https://zeli.app/ja/story/50476069.md
- ko: https://zeli.app/ko/story/50476069 · markdown: https://zeli.app/ko/story/50476069.md
- de: https://zeli.app/de/story/50476069 · markdown: https://zeli.app/de/story/50476069.md
- es: https://zeli.app/es/story/50476069 · markdown: https://zeli.app/es/story/50476069.md
- ru: https://zeli.app/ru/story/50476069 · markdown: https://zeli.app/ru/story/50476069.md
