Skip to content

Commit 849b329

Browse files
Client configuration file (w/ Puppet)
1 parent 8a8dd91 commit 849b329

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

0x0B-ssh/100-puppet_ssh_config.pp

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Client configuration file (w/ Puppet)
22
include stdlib
33

4-
file_line { 'Turn off passwd auth':
4+
file_line { 'Turn off passwd':
55
ensure => present,
6-
path => '/etc/ssh/sshd_config',
7-
line => 'PasswordAuthentication no',
6+
path => '/etc/ssh/ssh_config',
7+
line => ' PasswordAuthentication no',
88
replace => true,
99
}
1010

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',
11+
file_line { 'identity change':
1412
ensure => present,
13+
path => '/etc/ssh/ssh_config',
14+
line => ' IdentityFile ~/.ssh/school',
1515
replace => true,
1616
}
17-

0 commit comments

Comments
 (0)