在树莓派CM0上需要先与预装系统,但是CM0没有图像解码,所以采用SSH连接是一个很好的选项。
本记录是在系统已经装好的情况下继续的
确保树莓派上已经安装了SSH服务器。在树莓派上,你可以通过终端运行以下命令来安装:
sudo apt update
sudo apt install openssh-server在树莓派上启用SSH服务。在树莓派上,你可以运行:
sudo systemctl enable ssh
sudo systemctl start ssh获取树莓派的IP地址。你可以在树莓派上运行:
hostname -I从你的计算机(与树莓派在同一网络)使用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:~ $第一次连接会让你确认是否连接,然后输入密码,如果正确,则会进入到远程界面