File Transfer Between Machines-Users
Guide to Easy File Transfer!
To transfer files between Machines and Users:
βοΈ All RUAI machines are based on Ubuntu OS. When transferring files between your local computer and a rented machine, you need to use the terminal.
βοΈ This guide covers the usage of scp and croc.
1. Using SCP for File Transfer
1. Windows (Local Computer) βοΈ Ubuntu (Remote Machine)
Windows (Local Computer) β Ubuntu (Remote Machine)
βοΈ For Windows 10, ensure that the OpenSSH Client is enabled.
Navigate to [Settings] β [Apps & Features] β [Optional Features] to verify if OpenSSH is installed.
βοΈ Then, open a terminal (CMD) or PowerShell and use the scp command to transfer files or directories to the remote destination.
The format for sending is as follows:
scp -P [machine development environment port] [path of file to send (can be dragged and dropped)] [username]@machine.runyour.ai:[remote machine storage path]-To fill in the [] placeholders, click the [Open Development Environment] button on the rented machine to retrieve SSH connection information.

When sending a file:
When sending a folder:
Ubuntu (remote machine) -> Windows (local computer)
βοΈTo retrieve files or folders from a remote machine to your own computer, simply reverse the command.
Format for sending
When retrieving a file:
When retrieving a folder:
2. mac OS(My Computer) βοΈ Ubuntu (remote machine)
Check the development environment before file transfer.

macOS (local computer) β Ubuntu (remote machine)
Format for sending:
Example for sending a file:
Example for sending a folder:
Ubuntu (remote machine) β macOS (local computer)
Format for sending:
Example for retrieving a file:
Example for retrieving a folder:
2. Croc CLI Tool for File Transfer
Croc is a CLI-based tool for easily transferring data between two computers.
It utilizes relay for data transfer and applies end-to-end encryption.
It supports cross-platform compatibility (Windows, Linux, macOS) and allows for multi-file transfers.
1. Installation
Unix
Open a terminal and run the following command to install:
Ubuntu
Open a terminal and run the following command to install:
macOS (requires Homebrew)
Open a terminal and run the following command to install:
Windows (requires scoop, choco, or winget)
For this guide, we'll use scoop for installation. First, run Windows PowerShell as an administrator and execute the following two commands sequentially to install scoop:
Then proceed to install croc:
2. How to Use
Open a terminal and connect to the remote machine.
Both the sender and receiver should open their terminals and execute the following commands based on their roles.
Sending a File
Executing the above command will display a generated code in the terminal:
The recipient should enter this code to receive the file.
Receiving a File
Enter the code generated during the file transmission to receive the file.
Example
Sender - Sending a file (execute from your local computer or remote machine's terminal)
Receiver - Retrieving a file (execute from your local computer or remote machine's terminal)
Last updated