File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 114
114
115
115
# sshd sftp options
116
116
server [ 'sftp' ] [ 'enable' ] = false
117
+ server [ 'sftp' ] [ 'log_level' ] = 'VERBOSE'
117
118
server [ 'sftp' ] [ 'group' ] = 'sftponly'
118
119
server [ 'sftp' ] [ 'chroot' ] = '/home/%u'
119
120
server [ 'sftp' ] [ 'password_authentication' ] = false
Original file line number Diff line number Diff line change @@ -214,11 +214,11 @@ AcceptEnv <%= @node['ssh-hardening']['ssh']['server']['accept_env'].join(' ') %>
214
214
# Configuration, in case SFTP is used
215
215
## override default of no subsystems
216
216
## Subsystem sftp /opt/app/openssh5/libexec/sftp-server
217
- Subsystem sftp internal-sftp -l VERBOSE
217
+ Subsystem sftp internal-sftp -l <%= @node['ssh-hardening']['ssh']['server']['sftp']['log_level'] %>
218
218
219
219
## These lines must appear at the *end* of sshd_config
220
220
Match Group <%= @node['ssh-hardening']['ssh']['server']['sftp']['group'] %>
221
- ForceCommand internal-sftp -l VERBOSE
221
+ ForceCommand internal-sftp -l <%= @node['ssh-hardening']['ssh']['server']['sftp']['log_level'] %>
222
222
ChrootDirectory <%= @node['ssh-hardening']['ssh']['server']['sftp']['chroot'] %>
223
223
AllowTcpForwarding no
224
224
AllowAgentForwarding no
You can’t perform that action at this time.
0 commit comments