GitHubに登録していた鍵が1024bitだったので2048bitのものに変えた

記事もブックマークコメントも参考になりました。

Windows の人は Putty/WinSCP がデフォルトで 1024 ビットの鍵を作るので要注意

http://b.hatena.ne.jp/Magicant/20140705#bookmark-202660386

自分の鍵を確認したらその通りだったので、2048bitの鍵に変更しておきました。うっかりしていました。

Macssh-keygenで生成するRSA鍵は、デフォルトで2048bitとのこと。

-b bits
Specifies the number of bits in the key to create. For RSA keys,
the minimum size is 768 bits and the default is 2048 bits. Gen-
erally, 2048 bits is considered sufficient. DSA keys must be
exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys,
the -b flag determines the key length by selecting from one of
three elliptic curve sizes: 256, 384 or 521 bits. Attempting to
use bit lengths other than these three values for ECDSA keys will
fail.

(manから引用)へー。

今回はやらないけど、4096bitにしたいならこうすればいいんですね。

ssh-keygen -t rsa -b 4096

別のブックマークコメントにあったとおり、githubssh鍵は、専用のものを用意することにします。