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

Commit

Permalink
make ssh client-side compression configurable
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Waite <[email protected]>
  • Loading branch information
aqw committed May 16, 2020
1 parent 33ee223 commit c099004
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ Warning: This role disables root-login on the target server! Please make sure yo
|`ssh_banner` | `false` | `true` to print a banner on login |
|`ssh_client_hardening` | `true` | `false` to stop harden the client |
|`ssh_client_port` | `'22'` | Specifies the port number to connect on the remote host. |
|`ssh_compression` | `false` | Specifies whether compression is enabled after the user has authenticated successfully. |
|`ssh_client_compression` | `false` | Specifies whether the client requests compression. |
|`ssh_compression` | `false` | Specifies whether server-side compression is enabled after the user has authenticated successfully. |
|`ssh_max_auth_retries` | `2` | Specifies the maximum number of authentication attempts permitted per connection. |
|`ssh_print_debian_banner` | `false` | `true` to print debian specific banner |
|`ssh_server_enabled` | `true` | `false` to disable the opensshd server |
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ssh_server_enabled: true # sshd
ssh_use_dns: false # sshd

# true or value if compression is needed
ssh_client_compression: false # ssh
ssh_compression: false # sshd

# For which components (client and server) to generate the configuration for. Can be useful when running against a client without an SSH server.
Expand Down
3 changes: 1 addition & 2 deletions templates/openssh.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ PermitLocalCommand no
# Misc. configuration
# ===================

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

#EscapeChar ~
#VisualHostKey yes
Expand Down

0 comments on commit c099004

Please sign in to comment.