Ever found yourself in a situation where you need to connect to your Raspberry Pi but don't have a monitor, keyboard, or mouse handy? This is where SSH (Secure Shell) comes in, and PuTTY, a free and open-source terminal emulator, software, and SSH client, makes the process a breeze. Here's a step-by-step guide on how to use PuTTY to connect to your Raspberry Pi.
Setting Up Your Raspberry Pi for SSH
Before you can connect to your Raspberry Pi using PuTTY, you need to ensure that SSH is enabled. This is a two-step process:
Enable SSH on your Raspberry Pi:

- Open the Raspberry Pi configuration tool by typing
sudo raspi-configin the terminal. - Select 'Interfacing Options' > 'SSH' > 'Yes' to enable SSH.
- Press 'OK', then 'Finish' to exit the configuration tool.
Find your Raspberry Pi's IP address:
- Type
hostname -Iin the terminal to display your IP address. - Note down the IP address, as you'll need it to connect to your Raspberry Pi using PuTTY.
Using PuTTY to Connect to Your Raspberry Pi
Now that your Raspberry Pi is set up for SSH, let's connect to it using PuTTY.
Step 1: Download and Install PuTTY
If you haven't already, download and install PuTTY from the official website: https://www.putty.org/

Step 2: Open PuTTY
Launch PuTTY. You'll see a window with several fields and options. Don't be intimidated; we'll go through them one by one.
Step 3: Enter Your Raspberry Pi's IP Address
In the 'Host Name (or IP address)' field, enter your Raspberry Pi's IP address. For example, if your IP address is 192.168.1.100, type that in the field.
Step 4: Choose the Connection Type
In the 'Connection' section, ensure that 'SSH' is selected under the 'Connection' dropdown menu.

Step 5: Set Port (if necessary)
By default, SSH uses port 22. If you've changed the port on your Raspberry Pi, enter the new port number in the 'Port' field.
Step 6: Connect to Your Raspberry Pi
Click 'Open'. A new window will open, asking you to confirm the host key. Click 'Yes' to continue.
Step 7: Log In to Your Raspberry Pi
You'll now be prompted to enter your Raspberry Pi's username and password. By default, the username is 'pi' and the password is 'raspberry'. After entering your credentials, you should now be logged in to your Raspberry Pi via SSH using PuTTY.
Troubleshooting Common Issues
If you're having trouble connecting to your Raspberry Pi using PuTTY, here are a few issues you might encounter and their solutions:
| Issue | Solution |
|---|---|
| PuTTY can't connect to the host | Ensure that your Raspberry Pi is powered on and connected to your network. Double-check that you've entered the correct IP address and port number. |
| Authentication failed | Ensure that you've entered the correct username and password. If you've changed the default credentials, use those instead. If you've forgotten your password, you can reset it by booting your Raspberry Pi with a keyboard and monitor attached, then running passwd in the terminal. |
| PuTTY freezes or becomes unresponsive | Try increasing the 'Timeout' setting in PuTTY. You can find this in the 'Connection' > 'Data' section. A higher timeout value can help prevent PuTTY from freezing when the connection is slow or unstable. |
That's it! You've now successfully connected to your Raspberry Pi using PuTTY. Happy coding!






















