玄箱 ssh 暗号鍵作成
玄箱にてSSH2 RSAの鍵を作成します。
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hoge/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
$ cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
ペアで作成される"id_rsa"ファイルをクライアントにコピーします。
その他、sshのプロトコル
* RSA1: SSH protocol 1 with RSA.
* RSA: SSH protocol 2 with RSA.
* DSA: SSH protocol 2 with DSA..
その他、鍵の作成コマンド
$ ssh-keygen -t rsa1 -C "SSH1 RSA key"
$ ssh-keygen -t rsa -C "SSH2 RSA key"
$ ssh-keygen -t dsa -C "SSH2 DSA key"
作成されるファイル一覧
鍵の種類 公開鍵ファイル (default) 秘密鍵ファイル (default)
---------------------------------------------------
SSH1 RSA ~/.ssh/identity.pub ~/.ssh/identity
SSH2 RSA ~/.ssh/id_rsa.pub ~/.ssh/id_rsa
SSH2 DSA ~/.ssh/id_dsa.pub ~/.ssh/id_dsa
--参考ページ
http://human.is.kyushu-u.ac.jp/~yosinori/ssh/index-j.html
http://www.ex.media.osaka-cu.ac.jp/windows/putty.html
「玄箱」カテゴリの記事
- 新型NASキット KURO-Z/NAS-KIT(2010.05.20)
- 小型LinuxBox開発キット KURO-SHEEVA(玄柴)(2009.12.05)
- 玄箱 まとめサイト(2009.08.25)
- 新型玄箱 KURO-BOX/T4(2009.08.24)
- HDDを4台搭載できるNASキット KURO-NAS/X4(2008.11.28)
The comments to this entry are closed.
Comments