Linux /Unix ユーザー

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

../_images/image21.png
  1. ping <hostname>.local を入力して、Raspberry Piが同じネットワーク上にあるか確認してください。

    ping raspberrypi.local
    
    ../_images/mac-ping.png

    上記のように、ネットワークに接続された後、Raspberry PiのIPアドレスを確認できます。

    • ターミナルが Ping request could not find host pi.local. Please check the name and try again. と表示された場合は、入力したホスト名が正しいか確認してください。

    • まだIPを取得できない場合は、Raspberry PiのネットワークまたはWiFiの設定を確認してください。

  2. ssh <username>@<hostname>.local (または ssh <username>@<IP address> )と入力します。

    ssh pi@raspberrypi.local
    

    注釈

    プロンプトが``The term 'ssh' is not recognized as the name of a cmdlet...``と表示された場合、

    システムが古すぎてsshツールがプリインストールされていないことを意味します。手動で Powershell経由でOpenSSHをインストールする を行う必要があります。

    または、 PuTTY のようなサードパーティのツールを使用してください。

  3. 次のメッセージは初めてログインするときにのみ表示されるので、 yes と入力してください。

    The authenticity of host 'raspberrypi.local (2400:2410:2101:5800:635b:f0b6:2662:8cba)' can't be established.
    ED25519 key fingerprint is SHA256:oo7x3ZSgAo032wD1tE8eW0fFM/kmewIvRwkBys6XRwg.
    This key is not known by any other names
    Are you sure you want to continue connecting (yes/no/[fingerprint])?
    
  4. 以前に設定したパスワードを入力してください。(私の場合は raspberry です。)

    注釈

    パスワードを入力するとき、文字はウィンドウに表示されませんが、これは正常です。正しいパスワードを入力する必要があります。

  5. これでRaspberry Piが接続され、次のステップに進む準備ができました。

    ../_images/mac-ssh-terminal.png