Remote access of a Raspberry Pi: Terminal

Remote access of a Raspberry Pi: Terminal

If you don’t have a monitor, mouse, or keyboard readily available for your Raspberry Pi setup, you can easily manage your device remotely from your Mac or PC. This method is efficient and convenient, particularly for headless setups.

Prerequisites

  1. Pre-configured WiFi Credentials: Ensure that your Raspberry Pi's WiFi is configured with the necessary credentials during the creation of the bootable microSD card.

  2. Bootable MicroSD Card: Insert the microSD card with a pre-installed operating system into your Raspberry Pi.

  3. Power Supply: Connect your Raspberry Pi to a power source and turn it on.

  4. Network Configuration: Make sure that both your Raspberry Pi and your Mac or PC are connected to the same WiFi network. This network should be the one you configured during the initial setup of your Raspberry Pi.

Accessing the Raspberry Pi using SSH

  1. Open the Terminal or command prompt

    For Mac, you can do this by pressing command + space bar > type "Terminal" > click the Terminal icon.

    For windows, you can do this by pressing the Windows Key > type cmd > click the Command Prompt icon that appears.

  2. Type the command ssh <username>@<hostname>.local in your terminal and press return/Enter. Here, replace <username> and <hostname> .local with the username and hostname you provided in the raspberry pi imager. For this illustration, "myrpi" is used as the hostname and rpiuser is used as the username.



  3. Type yes and press return/Enter to proceed connecting when prompted. This may occur only for the first time you're trying to connect to the raspberry pi.



  4. Type your password and press return/Enter. These are credentials you provided while configuring the raspberry pi imager.


    Note: The text you type for the password will not be displayed.
Once you've successfully logged into your Raspberry Pi using SSH, you'll notice a change in the command prompt. This indicates that you are now operating directly on your Raspberry Pi. For example, after logging in, the prompt will display as rpiuser@myrpi (<username>@<hostname>), confirming that you are connected as the rpiuser user on the myrpi system.


With this SSH connection, you can fully access and control your Raspberry Pi's terminal directly from your Mac or Pc. This remote access allows you to execute commands and manage files as if you were working directly on the Raspberry Pi itself. You can connect the DHT22 sensor to the raspberry pi and proceed with onboarding your raspberry pi from the terminal of your Mac/Pc.

If you are not comfortable with controlling the terminal of your Mac/Pc, and you access the GUI of your raspberry pi remotely as well.



    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION









                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Remote Access of a Raspberry Pi: GUI

                                                                                                                If you prefer to access the graphical user interface (GUI of the Raspberry Pi from your Mac or PC, you must enable VNC for your device and then access it using a VNC viewer, for this illustration Real VNC viewer is used. Enabling VNC Note: If your ...
                                                                                                              • Setting up the Raspberry Pi

                                                                                                                The Raspberry Pi is a highly versatile microcomputer widely used across numerous IoT applications. Setting up your Raspberry Pi is the initial step toward harnessing its capabilities in conjunction with Zoho IOT for a variety of use cases, such as ...
                                                                                                              • Onboarding the Raspberry Pi

                                                                                                                Now that you've created a device in the application, you can use the device's connection credentials to establish a secure link with the Raspberry Pi. Once this connection is successfully established, the Raspberry Pi will be able to send data ...
                                                                                                              • Phase 1: Getting Started

                                                                                                                Welcome to Zoho IOT's Diesel Generator Tutorial! This tutorial will provide you with step-by-step procedure to create a real-world IoT-based monitoring solution using Zoho IOT. In the process, you'll explore various features and functions and learn ...
                                                                                                              • Creating a Device for Raspberry Pi in Zoho IOT application

                                                                                                                With the physical setup of connecting the DHT22 sensor complete, we can now create a device in the Zoho IOT application to represent this raspberry pi. This device created I the application will have the necessary credentials to establish a ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources