Copy Files from a Mac to a Raspberry Pi using scp

In this video I go over the process of transferring files from a Mac to a Raspberry Pi using scp on the command line.

4 Ways to Enable an SSH Server on a Raspberry Pi: https://youtu.be/HU6Wk0hkpVQ

Log into Remote Raspberry Pi
ssh pi@raspberrypi.local
List Files in Directory
ls
Print Working (i.e. current) Directory
pwd
Change Current Directory to Desktop
cd Desktop
Move to the Parent Directory of the Current Directory
cd ../
Move to the Home Directory
cd
List Files in Directory in List Format
ls -l
List Files in Directory in List Format with Sizes in Human Readable Format
ls -lh
List Files Recursively
ls -lRh
Copy File index.htm to Raspberry Pi Home Directory
scp index.htm pi@raspberrypi.local:~/
Copy All htm Files in the Current Directory
scp *.htm pi@raspberrypi.local:~/
Copy All Files in the Current Directory Recursively
scp -r * pi@raspberrypi.local:~/
Make Directory in Current Directory (on Raspberry Pi)
mkdir bookcopy
Copy All Files in the Local Directory to the “bookcopy” Directory on the Raspberry Pi
scp -r * pi@raspberrypi.local:~/bookcopy/

4 Ways to Enable an SSH Server on a Raspberry Pi

In this video I take a look at 4 ways to enable an SSH Server on a Raspberry Pi. This would allow you to connect to a Raspberry Pi from another computer using SSH. This also allows you to copy files from a computer to the Raspberry Pi using scp.

Create an Empty ssh File on the Boot Partition (on a Raspberry Pi)
sudo touch /boot/ssh
Reboot Raspberry Pi
systemctl reboot
Open Raspberry Pi Software Configuration Tool
sudo raspi-config
Check for sshd Process
ps ax | grep 'ssh'
Enable SSH Server on Boot
sudo systemctl enable ssh
Start SSH Server
sudo systemctl enable ssh
Stop SSH Server
sudo systemctl stop ssh
Disable SSH Server on Boot
sudo systemctl disable ssh
View Status of SSH Service
sudo systemctl status ssh
SSH to the Raspberry Pi while on the Raspberry Pi
ssh localhost
SSH to the Raspberry Pi from other Machine
ssh pi@raspberrypi.local

or

ssh pi@ip_address_of_pi
Install OpenSSH Server (if needed)
sudo apt install openssh-server

Mac: Converting APFS to APFS Encrypted

In this video, I go over the procedure to convert an APFS formatted drive to APFS Encrypted.

Mac Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZPxkWT9rjYcF–ZSivANTkb

Samsung BAR Plus USB 3.1 Flash Drive 128GB - 300MB/s (MUF-128BE3/AM) - Champagne Silver (Amazon Affiliate)
US: https://amzn.to/3937r0Y
UK: https://amzn.to/33NNs5y
CA: https://amzn.to/2QACxXb
ES: https://amzn.to/2y44XTG
FR: https://amzn.to/3dHnyUv
IT: https://amzn.to/3fVkPsK
DE: https://amzn.to/2T30E27
IN: https://amzn.to/3detWCP
AU: https://amzn.to/3fe4WNa

You should be able to purchase the 32GB version at those same links.

List Disks and View Partitions
diskutil list
Encrypt Partition
sudo diskutil apfs encryptvolume disk7s1 -user disk
Decrypt Partition
sudo diskutil apfs decryptvolume disk7s1 -user disk
Display APFS Objects to View Status
diskutil apfs list
Container ID Example
View Specific Container
diskutil apfs list 1A38BC86-41D3-459E-B2A8-296B05CCEF2F
Clear Screen and View Specific Container
clear; diskutil apfs list 1A38BC86-41D3-459E-B2A8-296B05CCEF2F