Peer-to-peer file sharing
Magic Wormhole
Magic Wormhole [6] is a simple command-line utility for transferring files or directories to another computer on the LAN. The software is available in the repositories of most popular distributions and can be conveniently installed with the corresponding graphical front ends.
Since the program is still under active development, the developers also provide a list on the project's GitHub page showing which distribution ships which version of the program. In addition to the packaged versions in the software archives, the source code and a snap package are also available for download. Magic Wormhole uses PAKE encryption for file transfer and creates temporary relays by default.
Using Magic Wormhole
Magic Wormhole uses different file transfer parameters on the source and target systems. On the source machine, you type
wormhole send FILE
while on the destination, you type:
wormhole receive
The software then asks the target computer for the code, which it generates automatically for secure data transmission in line with the PAKE standard. The target computer only contacts the source machine after the code is input. The user on the target computer is then asked if they want to receive the transferred document. If approved, the tool stores the file on the target computer. While doing so, it shows a progress bar in the terminal window (Figure 11).
Packaging
Magic Wormhole not only transfers individual files, but also complete folders and directory hierarchies if desired. To do this, simply enter the directory to be sent or the root folder of the directory tree on the source computer. The software recognizes that the source is not a single file and generates a ZIP archive from the folder or directory tree. It then generates the code for entry on the receiving computer.
After entering the receive
command, Magic Wormhole first transfers the ZIP archive to the target computer, where it is unpacked on receipt, including all originally existing subfolders, and stored in the home directory of the logged-in user. If a folder with the same name already exists on the target computer in the storage directory, the file transfer aborts with an error message. If you have several folders with the same name, you should rename the directory to be transferred or copy it to a new folder before sending.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.