如何使用ssh连接树莓派?

92 阅读1分钟

树莓派镜像

mirrors.tuna.tsinghua.edu.cn/raspberry-p…

烧录程序后

在boot根目录添加两个文件

ssh wpa_supplicant.conf

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="Xiaomi_B9FD" 
    psk="2082371099" 
    priority=1 
}

其中ssh就是一个文件,里面没有内容。

然后使用ssh连接树莓派

ssh pi@192.168.0.11

密码是: raspberry

注意地址:使用登录路由器后台,设备中心看raspberry的ip即可。