Adding ssh password to raspberry pi

  1. Create ssh-key
    ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  2. Add id_rsa.pub content to the raspberry pi .ssh/authorized_keys

    echo ~/.ssh/id_rsa.pub | ssh pi@192.168.1.5 "cat >> .ssh/authorized_keys
  3. Add new login part in your .ssh/config file
    vi .ssh/config
    Host pi
     Hostname 192.168.1.5
     User pi
     IdentityFile ~/.ssh/id_rsa

     

This entry was posted in Yocto and tagged , , . Bookmark the permalink.

Leave a Reply

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