File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 99
99
default [ 'ssh-hardening' ] [ 'ssh' ] [ 'server' ] [ 'password_authentication' ] = false
100
100
default [ 'ssh-hardening' ] [ 'ssh' ] [ 'server' ] [ 'log_level' ] = 'verbose'
101
101
default [ 'ssh-hardening' ] [ 'ssh' ] [ 'server' ] [ 'accept_env' ] = [ 'LANG' , 'LC_*' , 'LANGUAGE' ]
102
+ default [ 'ssh-hardening' ] [ 'ssh' ] [ 'server' ] [ 'authorized_keys_path' ] = nil # if not nil, full path to an authorized keys folder is expected
102
103
103
104
# sshd sftp options
104
105
default [ 'ssh-hardening' ] [ 'ssh' ] [ 'server' ] [ 'sftp' ] [ 'enable' ] = false
Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ MaxStartups 10:30:100
96
96
# Enable public key authentication
97
97
PubkeyAuthentication yes
98
98
99
+ <% if @node['ssh-hardening']['ssh']['server']['authorized_keys_path'] != nil %>
100
+ # Customized authorized keys path
101
+ AuthorizedKeysFile <%= @node['ssh-hardening']['ssh']['server']['authorized_keys_path'] %>
102
+ <% end %>
103
+
99
104
# Never use host-based authentication. It can be exploited.
100
105
IgnoreRhosts yes
101
106
IgnoreUserKnownHosts yes
You can’t perform that action at this time.
0 commit comments