magic-wormhole 公网文件传输工具

magic-wormhole 可以安全地将东西从一台计算机转移到另一台计算机。

该软件包提供了一个库和一个名为 wormhole 的命令行工具,它使得可以从一台计算机到另一台计算机获取任意大小的文件和目录(或短文本片段)。两个端点通过使用相同的“虫洞代码”来识别:通常,发送机器生成并显示代码,然后必须将其输入接收机器中。

使用方法

发送者:

% wormhole send README.md
Sending 7924 byte file named 'README.md'
On the other computer, please run: wormhole receive
Wormhole code is: 7-crossover-clockwork

Sending (<-10.0.1.43:58988)..
100%|=========================| 7.92K/7.92K [00:00<00:00, 6.02MB/s]
File sent.. waiting for confirmation
Confirmation received. Transfer complete.

接收者:

% wormhole receive
Enter receive wormhole code: 7-crossover-clockwork
Receiving file (7924 bytes) into: README.md
ok? (y/n): y
Receiving (->tcp:10.0.1.43:58986)..
100%|===========================| 7.92K/7.92K [00:00<00:00, 120KB/s]
Received file written to README.md

安装

Linux (Debian/Ubuntu)
$ sudo apt install magic-wormhole

Linux (Fedora)
$ sudo dnf install magic-wormhole

Windows
https://github.com/aquacash5/magic-wormhole-exe

Install from Source
pip install --user magic-wormhole

posted @ 2023-12-20 14:56  LiuChengloong  阅读(103)  评论(0编辑  收藏  举报