SSHクライアントキー生成
SSHクライアントキーの生成手順です。 CentOS 6.x対応 CentOS 7.x対応
この設定手順ではパスフレーズ無し+確認無しの手順となります。
「echo "" > /tmp/sss && echo "" >> /tmp/sss && cat /tmp/sss | ssh-keygen -q -N "" -t rsa && chmod 700 ~/.ssh」を入力
[root@centos ~]# echo "" > /tmp/sss && echo "" >> /tmp/sss && cat /tmp/sss | ssh-keygen -q -N "" -t rsa && chmod 700 ~/.ssh Enter file in which to save the key (/root/.ssh/id_rsa): [root@centos ~]# [root@centos ~]# ls -l .ssh #生成確認 合計 8 -rw-------. 1 root root 1675 3月 16 18:16 2016 id_rsa -rw-r--r--. 1 root root 406 3月 16 18:16 2016 id_rsa.pub