File Transfer Between Machines-Users
Guide to Easy File Transfer!
Last updated
Guide to Easy File Transfer!
Last updated
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
.
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:
-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:
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:
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.
Unix
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:
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)