Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- docker
- Windows
- bash
- miniconda
- Kibana server is not ready yet
- pfsense
- macos
- ssh key 배포
- 한글가이드
- xe guest utilities
- x-pack
- application security
- hardening
- elastic stack
- ELASTIC
- Elasticsearch
- Proxy
- XCP-ng
- GitLab
- PlayBook
- centos 8
- proxycfg
- freebsd
- 보안양파
- Kibana
- endpoint security
- ansible
- 로그인불가
- G-suite
Archives
- Today
- Total
선 밖에 선 자유인
Ansible WinRM 설정 본문
Ansible WinRM 모듈 이용 시 아래와 같은 에러가 날 때
192.168.0.100 | UNREACHABLE! => {
"changed": false,
"msg": "basic: the specified credentials were rejected by the server",
"unreachable": true
}
1. Powershell 원격 관리 활성화
ps1> Enable-PSRemoting -Force
ps1> Set-Item wsman:\localhost\Client\TrustedHosts -value <ansible_server ip>
2. 대상 윈도 장비의 NIC 연결 속성을 "공용" 에서 "개인" 혹은 "도메인"으로 변경
ps1> Set-NetConnectionProfile -NetworkCategory Private
3. 아래의 명령어 파워쉘에 실행 (관리자 권한)
ps1> winrm set winrm/config/service/auth '@{Basic="true"}'
ps1> winrm set winrm/config/service '@{AllowUnencrypted="true"}'
* 기타 WinRM 설정 참고
https://gist.github.com/aJchemist/5ae3b87add56d39a5b051d860b8bc781
Comments