One of the more common ways of connecting to your Raspberry Pi is via SSH (Secure Shell). To connect to your Raspberry Pi using SSH, you'll first need to enable SSH. Then with your Raspberry Pi connected to the same network as your computer, you can connect using the following command on your computer:
The default password for the pi user is "raspberry".
Using SSH is one of the most general-purpose methods for connecting to your Pi. The downside is that it requires some comfort with operating on the command line. But it's powerful. Using SSH you can do just about anything you need to do on your Pi.
Connect using VNC
If you're running a graphical (GUI) version of Raspberry Pi OS, you can access your Raspberry Pi Desktop from your computer using VNC. To do this, you'll need to install a package called tightvncserver on your Raspberry Pi, then use a VNC client to connect.
This method is useful if you don't have enough peripherals for your Pi (or too many Raspberry Pi's). The only downside is that the VNC connection is often a little bit slower than a direct connection. For detailed instructions, refer to our guide on installing and configuring VNC on your Raspberry Pi.
Connect via USB using Gadget Mode
A less common (but awesome) way to connect your computer to your Raspberry Pi is to enable gadget mode on your Pi and connect directly using USB. With gadget mode, you won't even need a network connection or a power adapter. Just get a USB cable, connect your Pi to your computer, and log in using SSH. The computer provides the power and network connection.