Skip to content

Commit cd2fe1f

Browse files
Client configuration file (w/ Puppet)
1 parent 5bd2e0f commit cd2fe1f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

0x0B-ssh/100-puppet_ssh_config.pp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Client configuration file (w/ Puppet)
2+
include stdlib
3+
4+
file_line { 'Turn off passwd auth':
5+
ensure => present,
6+
path => '/etc/ssh/sshd_config',
7+
line => 'PasswordAuthentication no',
8+
replace => true,
9+
}
10+
11+
file_line { 'Declare identity file':
12+
path => '/home/your_username/.ssh/config', # Replace 'your_username' with your actual username
13+
line => 'IdentityFile ~/.ssh/school',
14+
ensure => present,
15+
replace => true,
16+
}
17+

0 commit comments

Comments
 (0)