Wiki/HowTo about SSH setup without password (using public key)

  • In the last 2 days I've been spending a lot of time googling and searching EL + OE forums to figure out how to setup [passwordless] SSH access to LibreELEC box using public key.

    As I see in forums, different people keep hitting this wall, too.


    I would be more than happy to create a HowTo or Wiki entry about it (whichever is preferred), if there is no public how to available already. Just to save time for other people.

    Could you help me by directing me to the right people who could involve me in the HowTo creation.


    Cheers,

    WolfDog

  • Of course it works.

    A few reasons why in my case it didn't worked:

    • OpenELEC documentation - took me a while to understand that I need to "mix" OpenELEC and LibreELEC documentation to understand whatever I need to understand for LibreELEC
    • needs some deciphering if you would like to:
      • connect from Windows box, for ex using putty - in that case you need to copy your private key to the "other" box
      • generate your keys on Windows, for ex using putty
    • misses some points like:
      • don't try to change /etc/ssh/sshd_config because that part is readonly
      • what should you change if you want to additionally fine-tune your sshd config (typically he staff listed in sshd_config)
      • systemd is used, so "systemctl restart sshd" should be used if you want to restart sshd (and not "service sshd restart" or not "/etc/init.d/sshd restart")
  • It works.

    Flawlessly.


    Just put your public key in .ssh/authorized_keys

    like with almost every other UX. ;)

    Then - from client side... It's a different story.