SSH public key authentication failing to connect

  • Hi, I was setting up my fresh installed Omv5 to have access only through SSH public key auth but no matter what I try it keeps give me authentication failing to connect.


    What I did

    • I created an user and gave him ssh permission (with password works great)
    • created ssh keys with ssh-keygen and check that the public one was matching between the user and the /var/lib/openmediavault/ssh/authorized_keys
    • disabled permit root login and password authentication

    still what I get is wek@192.168.1.2: Permission denied (publickey).


    So I went ahead and looked at the /var/log/auth.log to see what was going on:



    Not really informative, so I went inside the server and check the permission for the authorized key and seems fine:


    Finally I thought to check the /var/log/auth.log and found this:



    Now first of all I didn't pay really attention ever to the / folder on other machines, but that directory permissions look a bit strange to me, or am I missing something?

  • Wek

    Hat das Label gelöst hinzugefügt.
  • I'm having exactly the same problem:

    I did a fresh install of openmediavault_5.3.9-amd64.iso and have no access through SSH public key.


    My Authentication log looks the same:

    "Authentication refused: bad ownership or modes for directory /"


    My directory permissions are identical:

    drwxrwxr-x 20 root root 4,0K Mai 5 23:38 /


    This is definitely not an isolated case.

    (For example: Issues with OMV 5)


    Chmod 755 / solves the SSH issue, but I'm wondering if there are other directories with wrong permissions. Could be a possible safety issue.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!