Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.55 KB | None | 0 0
  1. - name: Improve ssh server security
  2.   action: augeas command="set" path="/files/etc/ssh/sshd_config/{{ item.path }}" value="{{ item.value }}"
  3.   with_items:
  4.     - path: 'PermitRootLogin'
  5.       value: 'no'
  6.     - path: 'PasswordAuthentication'
  7.       value: 'no'
  8.     - path: 'UsePAM'
  9.       value: 'no'
  10.     - path: 'ChallengeResponseAuthentication'
  11.       value: 'no'
  12.     - path: 'X11Forwarding'
  13.       value: 'no'
  14.     - path: 'RSAAuthentication'
  15.       value: 'yes'
  16.     - path: 'PubkeyAuthentication'
  17.       value: 'yes'
  18.   notify:
  19.    - Restart sshd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement