Skip to content

Instantly share code, notes, and snippets.

@nathwill
Last active November 28, 2017 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathwill/f2e42881513dda4683fb to your computer and use it in GitHub Desktop.
Save nathwill/f2e42881513dda4683fb to your computer and use it in GitHub Desktop.
lazy audit logging
# Set up audit logging for connections outbound from the bastion
default['openssh']['client'].tap do |client|
client['permit_local_command'] = 'yes'
client['local_command'] = '/usr/bin/logger -p INFO -t AUTH %u signed into %h:%p as %r'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment