Connection to RaspberryPi (SSH)

20 Jun , 2023 - Uncategorised

(WIndows)

  • Wack the SD card into the raspberryPi
  • Download RaspberryPi Os (Imager)
    • Access the website and search for the download
    • Download the RaspberryPi imagery
    • [email protected]
    • choose the raspberry pi lite addition 32-BIT
    • Select storage device
    • Select the settings and turn SSH on as well as create a password
    • Set host name to whatever you want to call it
    • Click write
  • It will tell you to remove the SD card
  • Put it into the raspberryPi
  • Open Command Promt
  • Try Ping device by typing ‘ping raspi.local’
  • Open PuTty
  • Input the host name previously mentioned above
  • login on the command prompt
  • Will require password
  • Next you will need to open PuTtygen
  • Click Generate
  • In key comment change that to whatever will make sense and that will help tell the difference
  • Then save your public and private key to documents
  • hostname = Username@IP
  • Close PuTty
  • Make directory-‘sudo mkdir ~/.ssh
  • Open nano text editor-‘sudo nano ~/.ssh/authorized_keys
  • Copy the Public key to the File in text.
  • Command to change file permission ‘sudo chmod 644 ~/.ssh/authorized_keys
  • Change File owner-‘sudo chown darian:darian ~/.ssh/authorized_keys’
  • Exit and Open PuTty
  • Go to the side bar and access Auth-Credentials-Browse and find the private key.

A very impotant and common error that occurs when using PuTty is to copy the code from PuTy gen itself.

The formatting of how windows saves the keys is the problem.

Cheat way for Public key is to set the key in the raspberryPi imager 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Day 62 Log

23 Oct , 2023 - Uncategorised

Day 61 Log

18 Oct , 2023 - Uncategorised