Using SSH to connect to your Raspberry Pi
Earlier, when writing the SD card, we enabled SSH. This is a secure remote shell that lets us send instructions and files to and from the Raspberry Pi without having physical access to it.Windows, Linux, and macOS computers all have a terminal ssh tool to access remote SSH systems, like this Raspberry Pi. Let’s connect to the Raspberry Pi with SSH.
- Use the command
ssh <username>@<hostname>.local—for example:
ssh danny@learnrob3.local
- The first time you do this, you will be asked to accept a host key:
The authenticity of host 'learnrob3.local (1ea7:540b:071c:5a3b:f2ed)' can't be established.
ED25519 key fingerprint is ...
This is a unique key generated by your Raspberry Pi. Type yes to continue and press Enter.
If you have done this before with the same hostname, you may also see this problem:
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Offending ECDSA key in /userfolder/.ssh/known_hosts:39...