说明
官网
image.pngcroc is a tool that allows any two computers to simply and securely transfer files and folders. AFAIK, croc is the only CLI file-transfer tool that does all of the following:
- allows any two computers to transfer data (using a relay)
- provides end-to-end encryption (using PAKE)
- enables easy cross-platform transfers (Windows, Linux, Mac)
- allows multiple file transfers
- allows resuming transfers that are interrupted
- local server or port-forwarding not needed
- ipv6-first with ipv4 fallback
- can use proxy
安装
1. 下载安装包
image.png2. 上传服务器,解压
tar -zxvf croc_v10.0.13_Linux-64bit.tar.gz
3. 发送文本文件
./croc send --text "hello world"
image.png
4. 下载 Windows
版本的 croc
,解压双击
image.png
5. 输入接收命令,回车,输入 Y
2886-chant-crimson-nylon
image.png
这时候回看到文本,cmd 窗口也会闪退
6. 同理,传输 mp4 视频文件也是一样的步骤。
./croc video1.mp4
-
发送文件
image.png -
接收文件
image.png -
接收中
image.png -
传输完成
image.png -
顺利接收到文件
image.png
网友评论