我首先运行命令 ansible-galaxy collection install devsec.hardening
然后我运行了这个剧本
- hosts: linux
become: yes
vars:
- sftp_enabled: true # Enabled for Ansible. See the Ansible scp_if_ssh option as an alternative.
- ssh_server_password_login: true
roles:
- devsec.hardening.ssh_hardening
此后,一旦运行此 ssh 强化角色,我就无法登录域用户
我收到错误:权限被拒绝(公钥)