Puppet Class: openssh::hardening

Defined in:
manifests/hardening.pp

Summary

SSH client and server files hardening

Overview

SSH client and server files hardening

Examples:

include openssh::hardening


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/hardening.pp', line 7

class openssh::hardening {
  file {
    default: mode => 'o=';
    '/etc/ssh': mode => '0750';

    # sshd
    '/usr/sbin/sshd': ;
    '/usr/sbin/sshd-keygen': ;

    # openssh clients
    '/usr/bin/scp': ;
    '/usr/bin/sftp': ;
    '/usr/bin/slogin': ;
    '/usr/bin/ssh': ;
    '/usr/bin/ssh-add': ;
    '/usr/bin/ssh-agent': ;
    '/usr/bin/ssh-copy-id': ;
    '/usr/bin/ssh-keyscan': ;
  }
}