Table of Contents
This tip is about the how to Install and Securely Transfer Files between Computers with croc. So read this free guide, How to Install and Securely Transfer Files between Computers with croc step by step. If you have query related to same article you may contact us.
How to Install and Securely Transfer Files between Computers with croc – Guide
There are many ways to transfer files between two or more computers. Today we are going to talk about another utility called Croc. In that tutorial, let’s show you how to install Croc and how to use it to transfer files securely between computers.
Croc is a file transfer system that securely sends files through a file transfer relay using end-to-end encryption. If you’re curious about the name, it’s inspired by the fable of the frog and the crocodile. The main advantages of Croc are speed, security and simplicity, all in one. Data transfer with Croc is faster because it acts as a relay server between systems. It creates a real-time, full-duplex communication layer between the two computers so that upload and download tasks occur simultaneously between those computers.
A very useful tool for securely transferring files between computers. It does many things, including:
How to install Croc on Linux
Croc can be installed and run on any Linux distribution. To make your installation, run the following command:
curl https://getcroc.schollz.com | bash
Running this command installs croc in this location / usr / local / bin /
But if you don’t like the install links directly with the shell, you can download these binaries from the launch page and install them using the system’s package manager.
For Debian / Ubuntu users, you can install Croc with these commands:
sudo apt install gdebisudo gdebi croc_9.2.0_Linux-64bit.deb
To install Croc using snap, run:
croc instant installation
Since Croc uses the Go language, after installing Go on your system, you can easily install Croc with this command:
GO111MODULE = go get -v github.com/schollz/croc/v8
Croc can be installed on Arch linux using pacman with these commands;
pacman -S croc
Transfer files between computers with Croc
After installing Croc on both computers, you can proceed with the file transfer using;
$ croc send
croc send /root/droidcam-64bit.tar.bz2
On the receiving computer, this sentence 2711-quebec-rocket-button establishes a password authentication key (PAKE) that is used to generate end-to-end encryption for both computers.
On the receiving computer, type the phrase provided by the sending computer
$2711 croc-quebec-rocket-button
Executing this command establishes an agreement between the computers and initiates the transfer. You must click “y” to receive the file. This is output on both computers after a successful file transfer.
Define a custom phrase code
Because Croc generated a code to authenticate and create an agreement between the computers, you can choose a custom code instead of randomizing them. customization of a code is achieved with the –code flag.
$ croc send –code use-this-code IMG.png
Sending text using Croc
Just like sending files, you can easily send texts using Croc. This can be useful in cases where you want to share a URL with the recipient. This is achieved using;
$ croc send –text “Thanks for visiting Techviewleo”
Using Pipe In Croc
In croc, you can send output with this command:
cat config.yaml | send croc
To receive the file, use;
croc 4283-tibet-alarm-table or
croc -yes 4283-tibet-alarm-table> out
Using yes doesn’t ask for any confirmation, as you’ve already agreed.
Using pipe uses stdin to name the uploaded file; in the illustrations below, received files are named with the string stdn.
Setting the folder for Croc output
Normally, Croc downloads the received file into the current working directory. To set a specific folder to download your files in, add the –out flag.
croc -out ~ / Downloads
Final note
I hope you like the guide How to Install and Securely Transfer Files between Computers with croc. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.