☰
树莓派的一些问题记录-3:CM0的远程SSH连接配置
2026/10/5 14:17:50 网站建设 项目流程

在树莓派CM0上需要先与预装系统,但是CM0没有图像解码,所以采用SSH连接是一个很好的选项。

本记录是在系统已经装好的情况下继续的

  1. 确保树莓派上已经安装了SSH服务器。在树莓派上,你可以通过终端运行以下命令来安装:
    sudo apt update
    sudo apt install openssh-server

  2. 在树莓派上启用SSH服务。在树莓派上,你可以运行:
    sudo systemctl enable ssh
    sudo systemctl start ssh

  3. 获取树莓派的IP地址。你可以在树莓派上运行:
    hostname -I

  4. 从你的计算机(与树莓派在同一网络)使用SSH客户端连接。在终端中运行:
    ssh pi@<树莓派的IP地址>

安装后,可以用另一台电脑进行验证:

PS C:\Windows\System32\WindowsPowerShell\v1.0> ssh pi@192.168.0.3 The authenticity of host '192.168.0.3 (192.168.0.3)' can't be established. ED25519 key fingerprint is SHA256:U772K/mc44uWf4zJSNyjKIdhsF0CoEdaf1GWaQlUTbY. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.0.3' (ED25519) to the list of known hosts. pi@192.168.0.3's password: Linux raspberrypi 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1 (2025-09-16) aarch64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. pi@raspberrypi:~ $

第一次连接会让你确认是否连接,然后输入密码,如果正确,则会进入到远程界面

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询