This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (17 sloc) 514 Bytes
class ec2init::ssh {
notice("SSH RSA: ${::sshrsafp}")
notice("SSH DSA: ${::sshdsafp}")
augeas { 'sshd_config hardening':
changes => [
'set /files/etc/ssh/sshd_config/PermitRootLogin no',
'set /files/etc/ssh/sshd_config/PasswordAuthentication no',
],
}
service { 'sshd':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
subscribe => Augeas['sshd_config hardening'],
}
}