使用SSH连接 Windows Server 2025.note

noteId: WEB07fc2537d4d78f0f14762418ea827746 · 原始路径:/ALL/Ansible 自动化管理/Ansible 配置合集/Ansible 自动化管理-Windows/使用SSH连接 Windows Server 2025.note · 图片:2 · 附件待处理:0

 
 
注意:仅支持Windows Server 2025版本,因为2025默认安装了Open SSH服务
1、Server 2025 配置:
start-service sshd
set-service sshd -startuptype automatic
 
 
2、Linux 配置:
apt install -y ansible ssh python3 python3-passlib sshpass
 
cat /etc/ansible/ansible.cfg
 
cat /etc/ansible/group_vars/all.yml