• First Steps
  • General
  • Projects
Facebook Twitter YouTube
Tutorials for Raspberry Pi Tutorials for Raspberry Pi
  • Hardware & GPIO
  • Sensors & Components
  • Scale
  • Cases
  • Fingerprint
  • Gas Sensor
  • Heartbeat
  • German
  • French
Tutorials for Raspberry Pi Tutorials for Raspberry Pi
Home»First Steps»Raspberry Pi Remote Access by using SSH and Putty

Raspberry Pi Remote Access by using SSH and Putty

Facebook Twitter LinkedIn Tumblr Email Reddit
Share
Facebook Twitter LinkedIn Email Tumblr Reddit Telegram WhatsApp

After setting up your Raspberry Pi you probably don’t want to use your keyboard and mouse. That’s where a remote connection helps: You can have remote access to your Raspberry Pi through SSH from every other computer which is in the same network as your Pi.

In this Tutorial you will learn how to use SSH for connecting to you Raspberry Pi.

Hint: If you want to have access with a GUI (like TeamViewer or VNC), you can establish a remote desktop connection.

 

Installing Putty

So let’s begin. On Windows computers you need the program  PuTTY. You doesn’t have to install it – Putty can be used without installation by opening just the putty.exe file. Then you will see a user interface like this where you enter the host “raspberrypi“:

putty

(If the connection didn’t work, you can look up the internal IP address of your Raspberry Pi in your router. It should be similar to 192.168.0.xxx, but the last digits may vary.)

With this default configuration of Putty you are not able to see all programs, especially not GUI programs. However if you want to start those kind of tools (like the GUI editor gedit), you need to install a X Windows System like XMing. After the installation you have to start it. It has no graphical user interface and will just run in background. Now go back to Putty and select Connection > SSH > X11 and check “Enable X11 forwarding”. That’s all! Optimally you save the settings. If you now login (first category: Session) X11 is enabled and you can open GUI programs, too.

 

 

Remote Access

After establishing the connection by clicking “Open” a new window appears. Here you should insert your username and password. The Raspbian Wheezy/Jessie default login is user “pi” with password “raspberry“.

putty2

 

If you have not already changed your password, you should do this now because not only you but also everybody else in your network could have remote access to your Raspberry Pi (if the default password is known).

With the following command you can change your password:

sudo passwd

After you confirmed your new password you have obviously to use it on your next login.

login putty remote ssh
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleHD44780 LCD Display per I2C mit dem Raspberry Pi ansteuern
Next Article How to establish a Raspberry Pi Remote Desktop Connection

Related Posts

Raspberry Pi Pico: Programming with the Affordable Microcontroller

Raspberry Pi GPIO Explanation for Beginners + Programming (Part 2)

Learn How to Program on the Raspberry Pi – Part 1: Introduction

Reading Out Raspberry Pi RFID RC522 Tags (NFC)

4 Comments

  1. PrasantaShee on 13. February 2018 7:27

    In addition to Raspberry pi, you can use tools like on premise R-HUB remote support servers for remotely accessing computers. It works on Windows, MAC, Android, iOS, Unix (Browser based), Linux (Browser based) etc.

    Reply
  2. j on 4. November 2020 18:33

    ? lots of tiny details left out here. Suddenly we are talking about the Windows computers? Then, I am supposed to locate putty.exe. Where exactly?
    ?

    Reply
    • Felix on 5. November 2020 22:58

      You can save putty.exe wherever you want on your computer and then just run it from there.

      Reply
      • Gus Gustafson on 6. December 2020 17:53

        On windows, open Start (from task bar or the Windows button). In the Search programs and files TextBox, enter “putty”. If PuTTY is installed, it will appear at the top of the list. If Putty is not installed, go to https://www.chiark.greenend.org.uk/~sgtatham/putty/ and download it. Make sure to allow an icon to be placed on your desktop or in the Start menu (that will make it easier to locate Putty in the future).

        Hope that helps.

Leave A Reply Cancel Reply

Build your own Raspberry Pi Compass (HMC5883L)

Programming Raspberry Pi Robot: Making it Follow the Lines (Part 2)

Run a Raspberry Pi on rechargeable Batteries

Control Raspberry Pi Robots via Infrared Remote Control (Part 3)

MCP3008: Read out Analog Signals on the Raspberry Pi

Raspberry Pi LED Matrix Library – Installation for multiline m x n MAX7219 LED Matrices

Subscribe to Blog
Subscribe to Raspberry Pi Tutorials and don't miss any new Tutorial!
Subscribe

Thank you!

We will contact you soon.

Tutorials for Raspberry Pi
Facebook Twitter YouTube
  • Contact & Disclaimer

Type above and press Enter to search. Press Esc to cancel.