ipfs-wormhole: Get things from one computer to another, safely. Over IPFS (optio...
source link: https://www.tuicool.com/articles/hit/3qI36jM
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
ipfs-wormhole
Get things from one computer to another, safely. Over IPFS (which is not even required to receive files thanks to the Cloudflare IPFS gateway ).
Inspired by magic-wormhole and dat-cp . Initially published here .
Usage
Send a file or a directory
On machine A:
ipfs-wormhole.sh send <file or directory>
Will encrypt and add the file (or the directory as a compressed tarball) to IPFS, and output a tag. If xclip is installed, the command to retrieve it will be copied to the clipboard.
Receive a file or a directory (as a compressed tarball)
On machine B:
ipfs-wormhole.sh receive <tag>
Will retrieve the file over IPFS if IPFS is installed and running, or if it's not, over HTTPS thanks to the Cloudflare IPFS gateway , decrypt it and save it locally.
Check dependencies
ipfs-wormhole.sh checkdeps
Update from the github repo
ipfs-wormhole.sh update
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK