Raspberry Pi 4 Headless Setup

Install OS

add a file named “ssh” into boot folder

On your laptop, find ip address of Raspberry Pi

C:\Windows\System32>ping raspberrypi -4

Pinging raspberrypi.local [192.168.0.90] with 32 bytes of data:
Reply from 192.168.0.90: bytes=32 time=8ms TTL=64
Reply from 192.168.0.90: bytes=32 time=3ms TTL=64
Reply from 192.168.0.90: bytes=32 time=3ms TTL=64
Reply from 192.168.0.90: bytes=32 time=4ms TTL=64

Ping statistics for 192.168.0.90:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 3ms, Maximum = 8ms, Average = 4ms

Now you can ssh

ssh pi@192.168.0.90


Connecting to 192.168.0.90:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l

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.

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.


Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

上一篇:用wireshark抓包带你详解下IP报文头


下一篇:centos环境更换IP地址为静态并且正常联网