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
- ELASTIC
- XCP-ng
- ansible
- Proxy
- elastic stack
- 보안양파
- miniconda
- GitLab
- Kibana server is not ready yet
- bash
- centos 8
- Elasticsearch
- G-suite
- hardening
- endpoint security
- proxycfg
- macos
- 로그인불가
- xe guest utilities
- docker
- 한글가이드
- PlayBook
- pfsense
- x-pack
- Windows
- application security
- ssh key 배포
- Kibana
- freebsd
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