![]() I also used the pathname with directories explicitly spelled out. Notice I’m using the eth0 or “wired” connection. Notice the destination used includes a user name, pi and the IP address of the destination machine. In this case, robnet.htm is a local HTML file I use for my home page and the remainder is the fully qualified file name on the destination Raspberry Pi. Using scp to copy an HTML text file from the Linux notebook to the Raspberry Pi. Here’s what the ifconfig command returns on one of my Raspberry Pi projects. ![]() You can also use the ip command with the a ifconfig A wired connection will have an IP address for the eth0 interface, which likely has a faster transfer speed. If the remote machine is on wifi use the IP address for the wlan0 interface. Use the ifconfig command on the remote machine to get the IP address. You’ll need that over on your local machine to connect using scp. The ssh-client software is installed and I usually connect to other machines FROM the notebook.Īfter making sure the ssh server is running on your remote machine, you should also note its IP address. I normally don’t run the ssh server on my everyday ASUS Linux notebook because it takes up computing resources and I don’t want anybody to be able to ssh into my machine. That way, I only need an ssh client on my Linux notebook when I want to transfer some files. Many of my Raspberry Pi-based projects have the ssh server set up for automatic operation after boot-up. Using scp requires an ssh server on one end and an ssh client on the other end. Today, we’ll look at using scp to copy files from one machine to another on a local network. Even though scp is hardened and encrypted be sure to practice appropriate security measures when venturing past the safety of your firewalled local-area network. I used to scp files from my Linux notebook up to my GoDaddy web site. Scp on the open internet works fine, since ssh works there too, considering the above-mentioned requirements. To use scp you simply need to have an operational ssh server on your remote machine and an ssh client running on the machine you are using, such as your Linux notebook. ![]() We discussed working with ssh in a recent TNS article. If ssh is installed, you’ll probably already have scp as well. Scp is part of the SSH family of remote network access services, native to Linux/Unix operating systems. Since all my machines are Linux based, the easiest way to do it is with the scp command. It might be sound files for my robotic skull’s voice (on a Raspberry Pi), screenshot graphics captured for a tech article or any number of text configuration files. I occasionally need to copy files between computers on my local network.
0 Comments
Leave a Reply. |