Linux/Unix 用户指南

  1. 找到并打开 Linux/Unix 系统中的 终端。

  2. 确保您的 Raspberry Pi 已连接到同一网络。通过输入以下命令验证连接状态: ping <hostname>.local。例如:

    ping raspberrypi.local
    

    如果 Raspberry Pi 已连接到网络,您将看到其 IP 地址。

    • 如果终端显示类似 Ping request could not find host pi.local. Please check the name and try again. 的消息,请仔细检查输入的主机名。

    • 如果仍无法获取 IP 地址,请检查 Raspberry Pi 的网络或 WiFi 设置。

  3. 使用以下命令启动 SSH 连接: ssh <username>@<hostname>.local 或 ssh <username>@<IP address>。例如:

    ssh pi@raspberrypi.local
    
  4. 首次登录时,您会看到一条安全提示消息。输入 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.
    Are you sure you want to continue connecting (yes/no/[fingerprint])?
    
  5. 输入您之前设置的密码。请注意,为了安全起见,输入时密码字符不会显示。

    备注

    终端中不显示密码字符是正常现象。只需确保输入正确的密码即可。

  6. 登录成功后,您的 Raspberry Pi 已连接,您可以开始进行下一步操作。