LinuxCommandLibrary

wormhole

Secure file transfer with human-readable codes

TLDR

Send a file

$ wormhole send [file]
copy
Send a directory (will be zipped automatically)
$ wormhole send [directory/]
copy
Send text instead of a file
$ wormhole send --text "[message]"
copy
Send with a custom code
$ wormhole send --code [custom-code] [file]
copy
Receive a file
$ wormhole receive [code]
copy
Receive and automatically accept
$ wormhole receive --accept-file [code]
copy
Receive to specific output file
$ wormhole receive --output-file [filename] [code]
copy

SYNOPSIS

wormhole command [options] [arguments]

DESCRIPTION

Magic-Wormhole provides secure, simple file transfer between two computers. The sender generates a short, human-readable code that the receiver types to establish an encrypted connection.
Security is based on SPAKE2+ password-authenticated key exchange, ensuring strong encryption from a simple code. Data transfers directly peer-to-peer when possible; otherwise, an encrypted relay tunnels the data. Neither servers see unencrypted content.
Directories are automatically zipped for transfer and unzipped on receipt. Text messages can be sent for quick sharing of passwords or small data.

PARAMETERS

send

Send a file, directory, or text message.
receive
Receive a file or text message.
--text, -t
Send a text message instead of file.
--code code
Use a specific wormhole code instead of generating one.
-c, --code-length n
Number of words in generated code.
--verify
Request receiver to verify data checksum.
--accept-file
Automatically accept incoming file (use with caution).
--output-file file
Save received data to specified filename.
--relay-url url
Use a custom rendezvous server.
--hide-progress
Don't show progress bar during transfer.
--help
Display help message.
--version
Display version information.

CAVEATS

Both sender and receiver must have wormhole installed. The wormhole code must be communicated securely (ideally spoken or via trusted channel). Using --accept-file with untrusted senders is risky as files are saved without confirmation.

HISTORY

Magic-Wormhole was created by Brian Warner and first released in 2015. It was designed to solve the problem of securely transferring files between computers without complex setup. The PAKE-based security model allows strong encryption from easy-to-type codes. Alternative implementations exist in Go (wormhole-william) and Rust.

SEE ALSO

scp(1), rsync(1), croc(1), ffsend(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community