树莓派新系统SSH连接被拒绝的解决方法

将全新的树莓派系统烧录,开机然后用SSH远程连接,结果SSH连接提示“connection refused”,导致连接树莓派失败。出现错误的原因是自 2016-11-25 官方发布的 Raspbian 系统镜像,系统默认禁用了 SSH 服务。

As of the November 2016 release, Raspbian has the SSH server disabled by default.

出错的详细信息为:

ssh: connect to host 192.168.43.220 port 22: Connection refused

官方的解决方案是:

SSH disabled by default; can be enabled by creating a file with name "ssh" in boot partition

如果你是windows用户,在驱动器根目录下使用PowerShell输入以下指令即可。

new-item ssh -type file

你新建文本改名为ssh也是一样的效果。

完成后再将SD卡插回树莓派,就可以正常使用SSH了。

本文链接:

https://yubanmei.com/archives/24.html
1 + 4 =
快来做第一个评论的人吧~