Operations 3 min read

How to Securely Share Files via Command Line with Transfer.sh

This guide introduces Transfer.sh, a fast, encrypted command‑line file‑sharing service supporting up to 10 GB, with instructions for uploading, encrypted uploads, downloading, virus‑total scanning, and setting limits on downloads and retention time for your projects.

Java High-Performance Architecture
Java High-Performance Architecture
Java High-Performance Architecture
How to Securely Share Files via Command Line with Transfer.sh

Transfer.sh is a simple, fast, and secure command‑line file‑sharing service that supports encrypted transfers, up to 10 GB per upload, and provides quick upload/download speeds. Files can be shared via URL and support ZIP or Tar compression.

The service works with Linux shells and currently supports the following providers: Amazon S3, Google Drive, Storj, and the local filesystem.

On GitHub, Transfer.sh has received 11.7K stars and 1.2K forks.

Basic Usage

Upload a file:

$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt

Encrypted upload:

$ cat /tmp/hello.txt | gpg -ac -o- | curl -X PUT --upload-file "-" https://transfer.sh/test.txt

Download and decrypt:

$ curl https://transfer.sh/1lDau/test.txt | gpg -o- > /tmp/hello.txt

Upload to VirusTotal for scanning:

$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal

Delete a file:

$ curl -X DELETE <X-Url-Delete-Response-Header-URL>

Set maximum download count (e.g., 1 download):

$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt -H "Max-Downloads: 1"

Set maximum retention days (e.g., 1 day):

$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt -H "Max-Days: 1"
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Linuxcommand-lineencryptioncURLcloud storagefile sharingtransfer.sh
Java High-Performance Architecture
Written by

Java High-Performance Architecture

Sharing Java development articles and resources, including SSM architecture and the Spring ecosystem (Spring Boot, Spring Cloud, MyBatis, Dubbo, Docker), Zookeeper, Redis, architecture design, microservices, message queues, Git, etc.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.