serverapps:configmgmt:ceor
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
serverapps:configmgmt:ceor [2017/12/22 10:24] – 作成 hayashi | serverapps:configmgmt:ceor [2018/05/29 07:25] (現在) – [CEoR] hayashi | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== CEoR ====== | ||
+ | Command Executer on Remote | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | ===== 準備 ===== | ||
+ | |||
+ | コントロール用ユーザを作成し、sshの公開鍵ファイルを作成する | ||
+ | |||
+ | < | ||
+ | pw add user -n idempotence | ||
+ | mkdir / | ||
+ | su - idempotence | ||
+ | cd / | ||
+ | ssh-keygen -q -t ed25519 -N '' | ||
+ | ssh-keygen -t ecdsa -b 384 -N '' | ||
+ | ssh-keygen -t rsa -b 4096 -N '' | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== install ===== | ||
+ | |||
+ | $ git clone https:// | ||
+ | |||
+ | |||
+ | |||
+ | ===== targetにAccountを作る ===== | ||
+ | FreeBSD | ||
+ | |||
+ | |||
+ | < | ||
+ | pw add user -n idempotence | ||
+ | mkdir / | ||
+ | chown idempotence: | ||
+ | chmod 700 / | ||
+ | echo 'YOUR PUBLIC KEY' >> / | ||
+ | chown idempotence: | ||
+ | chmod 600 / | ||
+ | echo ' | ||
+ | chmod 640 / | ||
+ | </ | ||
+ | |||