---
title: "Learn How to Remotely Access Raspberry PI Devices"
description: "Make sure you can connect anywhere and learn how to remotely access Raspberry PI devices when you need to in this ATA Learning tutorial!"
canonical: "https://adamtheautomator.com/how-to-remotely-access-raspberry-pi/"
---

# Learn How to Remotely Access Raspberry PI Devices

> Make sure you can connect anywhere and learn how to remotely access Raspberry PI devices when you need to in this ATA Learning tutorial!

Source: https://adamtheautomator.com/how-to-remotely-access-raspberry-pi/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![Learn How to Remotely Access Raspberry PI Devices](https://adamtheautomator.com/wp-content/uploads/2022/12/how-to-remotely-access-raspberry-pi-1.jpg)

# Learn How to Remotely Access Raspberry PI Devices

[![](https://secure.gravatar.com/avatar/2788bb1a3f735603f81eca51d68daec56a9d97e805a10268fb2c20afcc76b81b?s=192&d=mm&r=g)Nicholas Xuan Nguyen](https://adamtheautomator.com/author/nicholas-xuan-nguyen/)29 December 20224 min. read

Categories: [Home Ops](/category/home-ops/)

Tags:[Raspberry Pi](/tag/raspberry-pi/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Installing SSH on a Raspberry PI Device](#installing-ssh-on-a-raspberry-pi-device)
*   [Enabling SSH via the raspi-config Utility](#enabling-ssh-via-the-raspi-config-utility)
*   [Changing the Default SSH Password](#changing-the-default-ssh-password)
*   [Connecting to the Raspberry PI Device Remotely](#connecting-to-the-raspberry-pi-device-remotely)
*   [Conclusion](#conclusion)

Do you have a headless Raspberry PI device and need to make minor changes? What if do not have the time to connect a monitor and a keyboard? No worries! Learning how to remotely access Raspberry PI devices will do you a favor.

In this tutorial, you will walk through the steps to install SSH and enable SSH on your Raspberry PI to remotely control your device.

Ready? Read on and start remotely controlling your Raspberry PI devices!

## Prerequisites

This tutorial comprises hands-on demonstrations of remotely accessing Raspberry PI devices. To follow along, be sure you have the following in place:

*   At least one Raspberry PI device – This tutorial uses [Raspberry PI](https://adamtheautomator.com/raspberry-pi-imager-for-windows/) 4, but the steps are applicable to all versions of Raspberry PI devices.

Related:[Getting Started With the Raspberry Pi Imager for Windows](https://adamtheautomator.com/raspberry-pi-imager-for-windows/)

*   A computer (Windows, Mac, or Linux) – This tutorial uses Windows 10 to access Raspberry PI remotely.

## Installing SSH on a Raspberry PI Device

As you set up SSH on your Raspberry PI device, ensuring the SSH daemon is installed and running is crucial. The SSH daemon is the background process that allows you to remotely access your Raspberry PI device.

SSH daemon should be installed by default on your Raspberry PI device, but double-checking would not hurt.

1\. Open a terminal in your Raspberry PI device, and run the `systemctl` command below to check if the SSH daemon is installed.

```bash
sudo systemctl status sshd
```

Related:[Correct Way of Using Ubuntu systemctl to Control Systemd](https://adamtheautomator.com/ubuntu-systemctl/)

If the SSH daemon is installed and running properly, you will see a message similar to the one below.

![Checking if the SSH daemon is installed](https://adamtheautomator.com/wp-content/uploads/2022/12/image-354.png)

Checking if the SSH daemon is installed

2\. If the SSH daemon is not installed, run the below `apt` commands to [`update`](https://linuxize.com/post/how-to-use-apt-command/#updating-package-index-apt-update) your system package index and [`install`](https://linuxize.com/post/how-to-use-apt-command/#installing-packages-apt-install) the SSH daemon.

```bash
sudo apt update && sudo apt install openssh-server -y
```

![Installing SSH on a Raspberry PI device](https://adamtheautomator.com/wp-content/uploads/2022/12/image-355.png)

Installing SSH on a Raspberry PI device

Related:[Learning Ubuntu Apt Get Through Examples](https://adamtheautomator.com/ubuntu-apt-get/)

3\. Once the installation completes, run the following commands to `start` and `enable` the SSH daemon (`sshd`) to start automatically at system boot.

```python
# Starts the SSH daemon
sudo systemctl start sshd
# Enables the SSH daemon to start automatically at system boot
sudo systemctl enable sshd
```

> 💡 _If you are having trouble enabling the SSH daemon, jump to the following “Enabling SSH via the `raspi-config` Command” section_

4\. Finally, check the status again to ensure that the SSH daemon is running properly. `sudo systemctl status sshd`

```bash
sudo systemctl status sshd
```

![Checking if the SSH daemon is installed](https://adamtheautomator.com/wp-content/uploads/2022/12/image-354.png)

Checking if the SSH daemon is installed

## Enabling SSH via the `raspi-config` Utility

If you have successfully enabled the SSH daemon, you are in luck. But if you got the “timeout” or “[Failed to start service](https://unix.stackexchange.com/questions/697995/systemctl-service-failed-exit-code)” error, you need an alternative.

Using the `systemctl enable` command tends to lead to errors. But fortunately, an alternate method or utility for enabling SSH on your Raspberry PI device called `raspi-config` exists. The utility allows you to configure and manage various settings on your device, including enabling SSH.

1\. Run the below command to launch the `raspi-config` utility, which will present you with a menu of options, as shown below.

```python
sudo raspi-config
```

Use the arrow keys on your keyboard to navigate through the menu and press Enter to select the option labeled **Interfacing Options**. This option lets you enable various interfaces on your Raspberry PI device, such as SSH.

![Enabling various interfaces, such as SSH](https://adamtheautomator.com/wp-content/uploads/2022/12/image-357.png)

Enabling various interfaces, such as SSH

2\. Next, select the **SSH** option and press Enter, which opens a new window where you can enable SSH.

![Select the SSH option](https://adamtheautomator.com/wp-content/uploads/2022/12/image-358.png)

Select the SSH option

3\. Now, press the Tab key to move the cursor to **Yes**, and press Enter to enable SSH on your Raspberry PI device.

Ignore the cautionary message that appears since You will change the default password in the following section. Press Enter twice to exit the `raspi-config` utility.

![Enabling SSH on the Raspberry PI device](https://adamtheautomator.com/wp-content/uploads/2022/12/image-359.png)

Enabling SSH on the Raspberry PI device

## Changing the Default SSH Password

You have successfully enabled SSH on your Raspberry PI device, but you must still ensure your device will not become compromised. How? By changing your default SSH password.

The default password for the ‘pi’ user on Raspberry PI devices is ‘raspberry’. While the default password may be convenient, it poses a security risk.

Run the following `passwd` command to initiate changing your default SSH password.

```python
passwd
```

When prompted, provide the current default password, and enter and confirm a new password twice. Make sure to choose a strong, unique password to avoid getting your device getting compromised.

At this point, your Raspberry PI device is more secure. But how do you connect to your Raspberry PI device remotely? You will first need to get your Raspberry PI device’s local IP address in the following step.

![Changing the default SSH password](https://adamtheautomator.com/wp-content/uploads/2022/12/image-360.png)

Changing the default SSH password

Now, run the below `hostname` command to get your Raspberry PI device IP address (`-I`).

```python
hostname -I
```

Take note of the IP address, as shown below, as you will use it to remotely access your device over the internet on the same network.

![Finding the Raspberry PI device’s IP address](https://adamtheautomator.com/wp-content/uploads/2022/12/image-361.png)

Finding the Raspberry PI device’s IP address

## Connecting to the Raspberry PI Device Remotely

Now all the hard work is done, and you can finally connect to your raspberry PI device remotely. But first, you will need an SSH client.

If you are using Windows, KiTTY is a popular choice. For macOS and Linux users, the built-in terminal works fine, but this tutorial uses Kitty for demonstrations.

Related:[How to Install and Use Kitty SSH Client](https://adamtheautomator.com/kitty-ssh/)

Open KiTTY, and configure the destination to connect to and the connection type with the following:

*   Enter your Raspberry PI device’s local IP address in the **Host Name** field (i.e., **pi@192.168.1.6**).
*   Enter **22** for the **Port** number.
*   Select **SSH** as the **Connection type**.

Keep other settings as is, and click **Open** to connect to your Raspberry PI device remotely.

![Configuring the SSH connection](https://adamtheautomator.com/wp-content/uploads/2022/12/image-362.png)

Configuring the SSH connection

Now, enter the new password you set for the ‘pi’ user in the “Changing the Default SSH Password” section.

If successful, you will be logged in to your Raspberry PI device, as shown below. And that is it! You can now manage your Raspberry PI device remotely to your heart’s content.

![how to remotely access raspberry pi - Connecting to the Raspberry PI device remotely](https://adamtheautomator.com/wp-content/uploads/2022/12/image-363.png)

Connecting to the Raspberry PI device remotely

## Conclusion

Remotely accessing your Raspberry PI device is a great way to get things done faster without sacrificing security. There are a few steps involved to ensure everything is set up correctly and securely. But you will surely get the hang of remotely accessing your Raspberry PI devices.

With your SSH configuration setup, enjoy all the [amazing projects](https://projects.raspberrypi.org/en) you can create with your Raspberry PI device!

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fhow-to-remotely-access-raspberry-pi%2F&text=Learn%20How%20to%20Remotely%20Access%20Raspberry%20PI%20Devices)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fhow-to-remotely-access-raspberry-pi%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fhow-to-remotely-access-raspberry-pi%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2021/10/python-if-else-if.jpg)

### [Python If Else If Explained: A Guide to Conditional Logic](/python-if-else-if/)

Discover the essentials of Python if else if with our concise guide. Enhance your coding with key insights to conditional logic, tailored for all skill levels.

![](https://adamtheautomator.com/wp-content/uploads/2021/06/How-to-Recall-Email-in-Outlook-Preventing-that-Oh-Crap-Moment.jpg)

### [How to Recall Email in Outlook: A Step-By-Step Guide to Undoing Mistakes](/recall-outlook-email/)

Learn how to recall Outlook email by understanding how Outlook recall works and how to implement it in this handy tutorial.

![](https://adamtheautomator.com/wp-content/uploads/2023/09/revo-uninstaller.jpg)

### [Optimize Windows System Performance Using Revo Uninstaller](/revo-uninstaller/)

Need to remove, clean up and d spring clean on your Windows 10 PC? IF so, learn how to clean house with Revo Uninstaller.

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
