 +  curl_easy_setopt(curl, CURLOPT_URL, "sftp://example.com");
 +
 +  /* enable built-in compression */
-+  curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, 1);
++  curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, 1L);
 +
 +  /* Perform the request */
 +  curl_easy_perform(curl);

   struct OperationConfig *prev;
   struct OperationConfig *next;   /* Always last in the struct */
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index cc2d816f15..fccaa3797a 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -188,6 +188,7 @@ static const struct LongShort aliases[]= {

 .IP CURLOPT_SSH_PUBLIC_KEYFILE
diff --git a/docs/libcurl/opts/CURLOPT_SSH_COMPRESSION.3 b/docs/libcurl/opts/CURLOPT_SSH_COMPRESSION.3
new file mode 100644
index 0000000000..5445cb0d2a
--- /dev/null
+++ b/docs/libcurl/opts/CURLOPT_SSH_COMPRESSION.3
@@ -0,0 +1,58 @@
