ssh login with public key without password

Max2Play Home 2016 (en) Forums Max2Play on Raspberry PI ssh login with public key without password

This topic contains 3 replies, has 2 voices, and was last updated by  Mbydeen 5 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • 1. March 2017 at 9:34 #27361

    Hello,

    if’ve got a problem. I would like to shutdown the raspberry pi zero with the max2play installation over ssh. I allready generated a key on the max2play and transfered it to an other pi with an fhem installation. But when I try to connect so the max2play I need to enter a password every time. I allready edited the /etc/ssh/ssh_config and set PasswordAuthentication to no. But no change.

    Can anybody help me and say what I doing wrong?

    With a third pi, with openelec on it, it works.

    Thank you.

    1. March 2017 at 14:17 #27372

    Hi jay-jey

    Could you please explain more how have you generated the key for the ssh connection ?

    Regards,
    Mohammad Mbydeen

    2. March 2017 at 7:16 #27390

    First I generated the key on the max2play with

    ssh-keygen -t rsa -b 4096

    then I transfered the key by

    ssh-copy-id [email protected]_FHEM

    6. March 2017 at 13:08 #27465

    Hi jay-jey

    Once the ssh session ends it will require you to authenticate the ssh session again, the solution is to keep the ssh session running, by creating sub-session, you can check the following link:

    http://www.tecmint.com/keep-remote-ssh-sessions-running-after-disconnection/

    Regards,
    Mohammad Mbydeen

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Register here