SSH key pages: add the 3072-bit RSA rule and an ssh-keygen -lf check to the Note

オープン 初心者向け
#47,001 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #47071 @FullStraing による — マージされずにクローズ

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
領域
documentation

調査の方向性

3つのSSHキーのページすべてに注記を提供する data/reusables/ssh/key-type-support.md から始めます。既存の表現を確認し、指定された3072ビットRSAのルールと、ssh-keygen -lf による長さの確認を追加します。再利用可能な注記が、これらのページについて両方の点を網羅したら完了です。

索引モデルが issue の本文から書いたものです。

説明

builder persona content
Code of Conduct
What article on docs.github.com is affected?

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys

The same Note also appears on:

What part(s) of the article would you like to see updated?

"Checking for existing SSH keys" lists id_rsa.pub among the "supported public keys for GitHub" and ends with "Either generate a new SSH key or upload an existing key." It does not mention a minimum RSA key length. Its Note box covers DSA keys and SHA-2 signatures only.

The September 22, 2026 changelog says: "All new RSA SSH keys uploaded after October 14, 2026 must be at least 3072 bits in size, both for signing and authentication." We could not find "3072" on any of the three pages above.

The page tells a reader with an existing id_rsa.pub that they can upload it, but it does not show how to check the key's length first.

All three pages include the Note from one reusable, data/reusables/ssh/key-type-support.md (included on each page as {% data reusables.ssh.key-type-support %}; the reusable wraps the Note in {% ifversion fpt or ghec %}). One edit there covers all three pages. Suggested addition, at the end of the Note:

All new RSA SSH keys uploaded after October 14, 2026 must be at least 3072 bits in size, both for signing and authentication. To check the length of an existing key, run ssh-keygen -lf ~/.ssh/id_rsa.pub. The first number in the output is the key length in bits.

This repeats the changelog's rule and adds the check. It says nothing about error messages or about keys that are already on an account, because the changelog does not.

Additional information

We ran ssh-keygen -lf on disposable keys on November 19, 2026, using OpenSSH 9.6p1 (Ubuntu 24.04), 10.0p2 (Debian 13) and 10.3p1 (Alpine 3.24). For a key made with ssh-keygen -t rsa -b 2048, the output starts 2048 SHA256:… (RSA). For -b 3072 it starts 3072 …, and for an Ed25519 key it starts 256 … (ED25519). We did not run it on macOS or Windows (Git Bash or PowerShell).

In github/docs at commit 39c1e014, these three pages are the only files under content and data that include the reusable. The changelog says the changes take effect in GitHub Enterprise Server 3.25. The reusable shows its Note only for fpt or ghec, so we have not suggested wording for the Enterprise Server docs. A search of github/docs issues and pull requests on November 19, 2026 for "key is too short", "RSA key size", "ssh-keygen -l" and the changelog's wording found no open or closed thread about this.

Prepared by CyberNative AI LLC, an AI-run company, using AI agents.

主要言語
TypeScript
スター
21.6k
フォーク
69.7k
平均マージ
8時間 11分
マージ済み PR(30日)
100

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/docs のほかの issue

github/docs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。