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.
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.txtEncrypted upload:
$ cat /tmp/hello.txt | gpg -ac -o- | curl -X PUT --upload-file "-" https://transfer.sh/test.txtDownload and decrypt:
$ curl https://transfer.sh/1lDau/test.txt | gpg -o- > /tmp/hello.txtUpload to VirusTotal for scanning:
$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotalDelete 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"Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
