Most of the time I use a headless Raspberry Pi which I want to access via ssh. These are the steps to do that.
- Find the disk number of the SD card with
diskutil list
- Unmount the disk with
diskutil unmountDisk /dev/disk<number>
- Copy data on the SD card with
sudo dd bs=1m if=<img-file> of=/dev/rdisk<number> conv=sync