serverapps:configmgmt:ceor
CEoR
Command Executer on Remote
準備
コントロール用ユーザを作成し、sshの公開鍵ファイルを作成する
pw add user -n idempotence -m mkdir /home/idempotence/.ssh su - idempotence cd /home/idempotence/.ssh ssh-keygen -q -t ed25519 -N '' -C 'idempotence@common' -f idempotence@common_id_ed25519 ssh-keygen -t ecdsa -b 384 -N '' -C 'idempotence@common' -f idempotence@common_id_ecdsa ssh-keygen -t rsa -b 4096 -N '' -C 'idempotence@common' -f idempotence@common_id_rsa
install
$ git clone https://github.com/sheo0147/CEoR.git
targetにAccountを作る
FreeBSD
pw add user -n idempotence -m mkdir /home/idempotence/.ssh chown idempotence:idempotence /home/idempotence/.ssh chmod 700 /home/idempotence/.ssh echo 'YOUR PUBLIC KEY' >> /home/idempotence/.ssh/authorized_keys chown idempotence:idempotence /home/idempotence/.ssh/authorized_keys chmod 600 /home/idempotence/.ssh/authorized_keys echo 'idempotence ALL=(ALL) NOPASSWD: ALL' > /usr/local/etc/sudoers.d/idempotence chmod 640 /usr/local/etc/sudoers.d/idempotence
serverapps/configmgmt/ceor.txt · 最終更新: 2018/05/29 07:25 by hayashi