sshの鍵ファイル作成することになった。
以下の手順で作成できた
[root@localhost ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa):←Enter Created directory '/root/.ssh'. Enter passphrase (empty for no passphrase):←PASSWORDを入れる Enter same passphrase again:←上と同じPASSWORDを入れる Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: c1:f1:4c:1c:96:31:74:d3:96:4a:02:48:d9:60:c6:58 root@localhost.localdomain
これで/root/.ssh/以下にファイルができる
ちなみに
- id_rsa.pub
- 公開鍵
- id_rsa
- 秘密鍵