NOTE: This is an old article. Please go to the Meshlium development section in order to get the latest tutorials.

How to copy files to Meshlium through scp

Requeriments:

  • At least one Meshlium

One of the most important needs when working with Meshlium is the need of copy files from and to Meshlium. To do that task in a secure way you can use scp. Scp uses ssh access to copy files from one system to another.
In the next example a file named file_00 will be copied from a local machine to a mehslium with ip 192.168.1.129 in the /tmp directory. And then a file named file_01 will be copied from Meshlium to local machine with scp.

~$ ls
file_00
~$ scp file_00 root@192.168.1.129:/tmp
root@192.168.1.129's password:
file_00                                     100% 6803     6.6KB/s   00:00
~$
~$ scp root@192.168.1.129:/tmp/file_01 .
root@192.168.1.129's password:
file_01                                     100% 6950     6.8KB/s   00:00
~$ ls
file_00 file_01
~$

© Libelium Comunicaciones Distribuidas S.L.

| Terms of use