14. SSH鍵交換
14
# ssh-keygen –t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
<省略>
#
まず構成管理サーバでsshの鍵を作成します。
すでに作成済みの場合は本手順は不要です。
以下のコマンドで鍵を作成します。
コマンド入力後は何も入力せずに「Enterキー」で問題ありません。
19. SSH鍵交換
19
引き続き構成管理クライアント側のパスワードを入力します。
Warning: Permanently added ‘<ホスト名>' (RSA) to the list of
known hosts.
root@<ホスト名>‘s password: <構成管理クライアント側パスワード>
Now try logging into the machine, with “ssh ‘root@<ホスト名>'",
and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't
expecting.
#
構成管理側クライアント側パスワードの入力をサーバの台数分繰り替えします。