📅  最后修改于: 2023-12-03 15:19:42.644000             🧑  作者: Mango
Raspberry Pi is a powerful and versatile single-board microcomputer. However, setting it up can be intimidating, especially for beginners. If you don't have a spare monitor, keyboard, and mouse lying around, you might wonder how you can set it up.
Fortunately, Raspberry Pi supports headless setup, which means you can access it remotely without needing any additional hardware. And the easiest way to do that is by using SSH (Secure Shell) protocol.
Before we begin, make sure you have the following:
By default, SSH is disabled on Raspberry Pi OS for security reasons. However, you can enable it with the following steps:
ssh
(without any extension).Now that SSH is enabled, you can connect to your Raspberry Pi from your computer. Here's how:
nmap
or Angry IP Scanner
to scan your network for Raspberry Pi's IP address.pi
and the password raspberry
. For security reasons, it's recommended to change the default username and password for SSH. You can also configure other options such as enabling public-key authentication, disabling password authentication, and more. To do this, edit the SSH configuration file located at /etc/ssh/sshd_config
.
SSH is a powerful tool that allows you to remotely access and manage your Raspberry Pi without needing any physical peripherals. With the simple steps outlined above, you can easily set up Raspberry Pi headless and start experimenting with your projects. Happy hacking!