Quantcast
Viewing latest article 5
Browse Latest Browse All 16

Transferring files with SCP between raspberries

I was playing with Raspberry Pi Model B for quite a long time. Tweaked few settings, wrote couple helper scripts. After some time second Raspberry Pi 2 arrived. I realized that most settings and scripts that were working on previous should do fine on a new one. I needed to copy few files from one Raspberry to another. For this purpose I decided to use Secure Copy (SCP). This is a file sending command over SSH. Raspbian OS already come with SCP installed so you can use it right away. (it it is missing you can install it by running command sudo apt-get install scp). With SCP you can send files in both directions – from local to remote and copy from remote location to local space. Lets get to some practical examples how I downloaded my scripts to new Raspberry pi from another board. My scripts are located in folder /home/pi/myscripts. The most simplest way is to copy single file. To make things easy to track, connect to both raspberry pi boards via ssh (I use PuTTY). On a destination computer navigate to folder where you want to copy file and run command: scp pi@192.168.0.104:/home/pi/myscripts/images1s.sh . pi@192.168.0.104 – is …

Continue reading


Viewing latest article 5
Browse Latest Browse All 16

Trending Articles