Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 2c0fb49

Browse files
authored
Merge pull request #284 from aqw/master
make ssh client-side compression configurable
2 parents 8d6ec28 + c099004 commit 2c0fb49

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ Warning: This role disables root-login on the target server! Please make sure yo
5959
|`ssh_banner` | `false` | `true` to print a banner on login |
6060
|`ssh_client_hardening` | `true` | `false` to stop harden the client |
6161
|`ssh_client_port` | `'22'` | Specifies the port number to connect on the remote host. |
62-
|`ssh_compression` | `false` | Specifies whether compression is enabled after the user has authenticated successfully. |
62+
|`ssh_client_compression` | `false` | Specifies whether the client requests compression. |
63+
|`ssh_compression` | `false` | Specifies whether server-side compression is enabled after the user has authenticated successfully. |
6364
|`ssh_max_auth_retries` | `2` | Specifies the maximum number of authentication attempts permitted per connection. |
6465
|`ssh_print_debian_banner` | `false` | `true` to print debian specific banner |
6566
|`ssh_server_enabled` | `true` | `false` to disable the opensshd server |

defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ssh_server_enabled: true # sshd
88
ssh_use_dns: false # sshd
99

1010
# true or value if compression is needed
11+
ssh_client_compression: false # ssh
1112
ssh_compression: false # sshd
1213

1314
# For which components (client and server) to generate the configuration for. Can be useful when running against a client without an SSH server.

templates/openssh.conf.j2

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ PermitLocalCommand no
113113
# Misc. configuration
114114
# ===================
115115

116-
# Enable compression. More pressure on the CPU, less on the network.
117-
Compression yes
116+
Compression {{ 'yes' if (ssh_client_compression|bool) else 'no' }}
118117

119118
#EscapeChar ~
120119
#VisualHostKey yes

0 commit comments

Comments
 (0)