카테고리 : IT2/ansible buytime | 2023. 1. 29. 02:52
우선 키가 없다면 ssh-keygen으로 키 생성부터 수행해야 함 playbook을 이용한 root 계정의 ssh public key(공개 키) 배포 ssh key 생성 # ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): 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. The ke..