ksp receive
ksp receive
Command ReferenceListen for incoming encrypted file transfers initiated by `ksp transfer` and verify their SHA-256 checksums.
Networking & Diagnostics
Purpose
Listen for incoming encrypted file transfers initiated by `ksp transfer` and verify their SHA-256 checksums.
Syntax
Command-line specificationbash / powershell
ksp receive [OPTIONS]
Options & Flags
| Option Flag | Description |
|---|---|
| --out-dir <PATH> | Destination folder to save incoming received files (default: current directory). |
| --port <PORT> | Listening port number (default: `9876`). |
| --require-auth | Require sender to authenticate with a valid signed KSP client certificate. |
Example Usage
Example command
ksp receive --out-dir ./downloads --port 9876
Expected Output
[+] Listening for secure incoming transfers on 0.0.0.0:9876... [+] Output folder: C:\Users\kush\downloads\ [INCOMING] Connection from 127.0.0.1:54112 (Authenticated) [INCOMING] Receiving: ubuntu.iso (4.2 GB) on Stream ID #3... [████████████████████████████████████████] 100% ✔ Saved to C:\Users\kush\downloads\ubuntu.iso ✔ Checksum match: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Implementation Notes
Maintains zero-memory overhead by piping decrypted chunks straight to disk using asynchronous file writers.