Server&Network
Anislbe ping test
하즈시
2020. 12. 25. 00:30
728x90
# mkdir /etc/ansible
#nano hosts
- 여기에 해당 연결할 호스트들을 작성
해당 호스트에 ssh 접속 환경 구축하기
chmod 700 /root/.ssh chmod 600 /root/.ssh/id_rsa chmod 644 /root/.ssh/id_rsa.pub chmod 644 /root/.ssh/authorized_keys chmod 644 /root/.ssh/known_hosts
##엔서블 서버
#cat id_rsa.pub
해당 키값 복사
## 호스트
#nano /.ssh/authorized_keys
- 해당 값 복사
- 파일 없으면 그냥 만들면 됨
728x90