File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 6060 client [ 'cbc_required' ] = false
6161 client [ 'weak_hmac' ] = false
6262 client [ 'weak_kex' ] = false
63+ client [ 'allow_agent_forwarding' ] = false
6364 client [ 'remote_hosts' ] = [ ]
6465 client [ 'password_authentication' ] = false # ssh
6566 # http://undeadly.org/cgi?action=article&sid=20160114142733
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ KexAlgorithms <%= @kex %>
7575
7676
7777# Disable agent formwarding, since local agent could be accessed through forwarded connection.
78- ForwardAgent no
78+ ForwardAgent <%= ((@node['ssh-hardening']['ssh']['client']['allow_agent_forwarding']) ? 'yes' : 'no' ) %>
7979
8080# Disable X11 forwarding, since local X11 display could be accessed through forwarded connection.
8181ForwardX11 no
You can’t perform that action at this time.
0 commit comments