Article URL: https://github.com/schollz/croc/ Comments URL: https://news.ycombinator.com/item?id=48882034 Points: 4 # Comments: 0

croc 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: For more information about croc, see my blog post or read a recent interview I did. You can download the latest release for your system, or install a release from the command-line: Add the following one-liner function to your ~/.profile (works with any POSIX-compliant shell): You can also just paste it in the terminal for current session. On first run Docker will pull the image. croc via Docker will only work within the current directory and its subdirectories. The code phrase is used to establish password-authenticated key agreement (PAKE) which generates a secret key for the sender and recipient to use for end-to-end encryption. On Linux and macOS, the sending and receiving process is slightly different to avoid leaking the secret via the process name. You will need to run croc with the secret as an environment variable. For example, to receive with the secret ***: For single-user systems, the default behavior can be permanently enabled by running: