Skip to main content
This doc relates to the below revision of hardware
Mecha Logo

Comet (rev5)

For Pilot users

The all new Mecha Comet

Better in all ways, the next revision of Mecha Comet, coming soon.

Transfer files with SCP

Secure Copy Protocol (scp) sends files over SSH. You can use scp to copy files between your Mecha Comet and another computer. Follow the instructions for sending and receiving files between the Comet and your computer.

1

Launch the Terminal app on your computer.

2

Copying files to your Mecha Comet Run the below command, replacing the /path/to/src with your file and the <ip address> (here) - to send the file to your Mecha Comet's destination directory.

$ scp /path/to/src mecha@<ip address>:/path/to/dest

# Example
$ scp ~/Documents/myfile.txt mecha@<ip address>:/home/mecha
3

Copying files from your Mecha Comet Run the below command, replacing the /path/to/src with your file to receive from the Comet in your destination directory.

$ cd /path/to/dest
$ scp mecha@mecha-comet.local:/path/to/src .
4

You are now a file copying ninja 🥷!


Copying multiple files​

To copy multiple files, list the file names in a single command, separated by spaces:

# Sending
$ scp file1.txt file2.txt mecha@<ip address>:/path/to/dest

# Receiving
$ scp mecha@<ip address>:{/path/to/src/1,/path/to/src/2} .

Copy files matching a pattern​

Use a wildcard to copy all files matching a particular filter. The following command copies all files that end with .txt:

$ scp *.txt mecha@<ip address>:/path/to/dest

Copying an entire folder (recursively)​

To copy a folder and all of its contents, pass the folder name with the -r (recursive) flag:

$ scp -r /path/to/folder mecha@<ip address>:/path/to/dest