Accessing Raspberry Pi from Mac (Terminal)
Accessing Raspberry Pi from Mac (Terminal)
Hello everyone, in this post I will explain how you can access your Raspberry Pi device from a Mac operating system, using the local terminal that comes built-in, without downloading any external programs.
I can say that this will be a quite short article, but I will try to support it with some images. The best part of connecting to a Raspberry device from Mac is this; even if you do not know your device's Local IP address, you can still connect very simply.
First, let's run the command snippet below to test whether your device is connected to the internet.
ping raspberrypi.local
If you run the above command and you get an output like below and do not encounter any errors, that means your device is connected to the internet and is accessible.
After this point, the only thing you need to do is type and send the following command snippet. Afterwards, when you connect for the first time, a question will appear. Here, write "Yes" and continue, and then enter the admin password of your RPI device to be fully connected.
ssh pi@raspberrypi.local
Note: If you are doing the setup for the first time, create a folder called SSH in your setup directory (in the boot folder). If you don't do this, you won't be able to access your device via any console/terminal application.
After completing the installation, you can integrate programs like VNC as described in this post.
Note2: If you get an error like the one below.
WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for raspberrypi.local has changed,
and the key for the corresponding IP address fe80::a25a:b6ea:ae38:25d7%bridge100
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:14s3gi4QHhIlFobItAxtLB1tlyB1uZFFi/C0ruoS9iI.
Please contact your system administrator.
Add correct host key in /Users/admin/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/admin/.ssh/known_hosts:1
ECDSA host key for raspberrypi.local has changed and you have requested strict checking.
Host key verification failed.
For the solution of this error, first run
ssh-keygen -R raspberrypi.local
command, then apply the instructions from top to bottom as explained in the post.





Yorum Gönder