そういえば、sshキーの作成って書いてないな

2014年3月4日

ネタがないので、以前にやったsshキーの作成をやってみた。
以下のような感じでrsaってやつの鍵を作れる。

$ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/poorman/.ssh/id_rsa):
/home/poorman/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/poorman/.ssh/id_rsa.
Your public key has been saved in /home/poorman/.ssh/id_rsa.pub.
The key fingerprint is:
0f:5c:d2:73:30:c1:cc:5b:4f:f8:cb:c4:05:96:7f:3c poorman@xxxxxx
The key's randomart image is:
+--[ RSA 2048]----+
|         ++. .oo |
|         .+o .o .|
|        . +o.= + |
|       . o.o  =E+|
|        S    o .o|
|         o    o  |
|          .      |
|                 |
|                 |
+-----------------+

しかし、上に出てくる奇妙な図はなんでしょうね。
暗号の種類には、RSA1, RSA2, DSAってのがあるらしいが、
rsaだけの引数にするとRSA2になるらしい。
なぜ、rsa1ではないのかは良くわからん。
鍵の強度としては、
RSA2 = DSA > RSA1ってな感じらしいので
RSA2かDSAを使っておけばいいんじゃないですかね。
違いは、知りません。最底辺ですから。

Linux

Posted by koheizi