Loading....
Tutorial
Cloud Vendor Independent
Proficiency Level Cloud Enthusiast
Tags IoTLinuxRaspberry PiRaspbian

Summary

This article describes how to install the Raspbian operating system on an SD card and configure a Raspberry Pi 4 device. Using the steps below, you will be able to configure SSH access to the Raspberry Pi device and use the default networking settings to connect it to the network. The tutorial also describes how to change the default SSH password for the device to avoid unauthorized access. It doesn’t go into details of the networking configuration or other software configuration. For this tutorial, the Mac OS X operating system is used, and a headless (no monitor and keyboard attached) device is assumed. For advanced networking configuration information or steps describing the Windows operating system flow, use the links in the Related Information section.

Prerequisites

To install and configure the Raspbian operating system on a Raspberry Pi 4 device, you will need the following:

  • Raspberry Pi 4 device
  • 8GB or bigger SD card
  • Mac laptop
  • SD card reader
  • Network cable

Solution

This content is restricted to subscribers only. To subscribe, please visit the registration page. Subscription levels correspond to the article proficiency levels. If you are a current subscriber, you can sign in to view the content.

Troubleshooting

Remote Host Identification Issue

If you have already configured another Raspberry Pi using the same laptop, you may encounter issues when trying to connect using SSH. Here is how the response may look like:

toddysm-macpro:~ toddysm$ ssh pi@raspberrypi.local
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for raspberrypi.local has changed,
and the key for the corresponding IP address fe80::4715:7dd6:8b77:207d%en9
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:4g7xCSjSPKmeU3q/ZLNqIxG0brZfGI8c8OFHxBrOfCw.
Please contact your system administrator.
Add correct host key in /Users/toddysm/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/toddysm/.ssh/known_hosts:5
ECDSA host key for raspberrypi.local has changed and you have requested strict checking.
Host key verification failed.
toddysm-macpro:~ toddysm$

If this happens, you need to open the ~/.ssh/known_hosts file and remove the SSH key entry for the raspberrypi.local host. You can use your favorite editor for that. Here is how to open the file using Vi:

vi ~/.ssh/known_hosts

Nmap Doesn’t Return IP Address for the Raspberry Pi

If the nmap command returns no IP address for the Raspberry Pi, make sure you are running it with root privileges (i.e., you typed sudo before the nmap command).

Last Update: September 17, 2019  

September 15, 2019   264   Toddy Mladenov    IoT    
Total 0 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Back To Top