Deprecated: Typecho\Widget\Request::getServer(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /app/yubanmei.com/var/Typecho/Widget/Request.php on line 248

Deprecated: Typecho\Widget\Response::goBack(): Implicitly marking parameter $suffix as nullable is deprecated, the explicit nullable type must be used instead in /app/yubanmei.com/var/Typecho/Widget/Response.php on line 187

Deprecated: Typecho\Widget\Response::goBack(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /app/yubanmei.com/var/Typecho/Widget/Response.php on line 187
树莓派新系统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了。

标签:树莓派

你的评论