Linux /Unix Users

  1. Go to Applications->Utilities, find the Terminal, and open it.

    _images/image21.png
  2. Check if your Raspberry Pi is on the same network by type in ping <hostname>.local.

    ping raspberrypi.local
    
    _images/mac-ping.png
    • If terminal prompts ping: cannot resolve <hostname>.local, it is possible that the Raspberry Pi failed to connect to the network. Please check the network.

    • If you really can’t ping <hostname>.local, try to Get the IP address and ping <IP address> instead. (e.g., ping 192.168.6.116)

    • If multiple prompts like 64 bytes from <IP address>: icmp_seq=0 ttl=64 time=0.464 ms appear, it means your computer can access the Raspberry Pi.

  3. Type in ssh <username>@<hostname>.local (or ssh <username>@<IP address>).

    ssh pi@raspberrypi.local
    
  4. The following message may appear.

    The authenticity of host 'raspberrypi.local (192.168.6.116)' can't be established.
    ECDSA key fingerprint is SHA256:7ggckKZ2EEgS76a557cddfxFNDOBBuzcJsgaqA/igz4.
    Are you sure you want to continue connecting (yes/no/[fingerprint])?
    

    Input "yes".

    _images/mac-ssh-login.png
  5. Input the password you set before. (Mine is raspberry.)

  6. We now get the Raspberry Pi connected and are ready to go to the nextstep.

    _images/mac-ssh-terminal.png