Posts by ewoodall2000

    Here's my ssh_config if that will help to diagnose:

    Protocol 2

    HostKey /etc/ssh/ssh_host_rsa_key

    HostKey /etc/ssh/ssh_host_dsa_key

    HostKey /etc/ssh/ssh_host_ecdsa_key

    HostKey /etc/ssh/ssh_host_ed25519_key

    SyslogFacility AUTH

    LogLevel INFO

    LoginGraceTime 120

    StrictModes yes

    IgnoreRhosts yes

    HostbasedAuthentication no

    PermitEmptyPasswords no

    ChallengeResponseAuthentication no

    X11Forwarding yes

    X11DisplayOffset 10

    PrintMotd no

    PrintLastLog yes

    TCPKeepAlive yes

    AcceptEnv LANG LC_*

    Subsystem sftp /usr/lib/openssh/sftp-server

    UsePAM yes

    AllowGroups root ssh

    AddressFamily any

    Port 22

    PermitRootLogin no

    AllowTcpForwarding yes

    Compression yes

    PasswordAuthentication yes

    AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 /var/lib/openmediavault/ssh/authorized_keys/%u

    PubkeyAuthentication yes

    I just went through the process here: [GUIDE] Enable SSH with Public Key Authentication (Securing remote webUI access to OMV)

    I created the key on my omv box with: ssh-keygen -t rsa

    Converted the key: ssh-keygen -e -f ~/.ssh/

    SCP'd the public and private keys over to my Windoze box.

    Opened the private key in PuttyGen, copied the public key text, and pasted into the 'public keys' section in OMV web ui.

    Pointed putty to the private key that I copied above.

    When I log in, the server is still refusing my key.

    Maybe permissions? Maybe not.

    Yep, I think at the core of this, when I have to sudo the: ssh-keygen -t rsa command, it's making the key have root@servername and not eric@servername.

    I need to get the permissions on /home/eric/.ssh fixed then I think I'll be good!

    Can you help with that?

    When I run this command: ssh-keygen -t rsa and add the passphrase, i get a permission denied.

    The directory is /home/eric/.ssh. I think the permissions are jacked up with this directory. How do I fix this so that I can actually save files in here without having to sudo?

    This command: ls -l /home/eric/.ssh shows:

    These are the permissions for the files in the /home/eric/.ssh directory but I think the permissions are jacked up with this .ssh directory.

    Here's the permission error:

    RSA, DSA, ECDSA, EdDsa, SSH-1 (RSA)

    What's strange is that in the user's section where you put your public key value in, if it's not formatted correctly it will tell you.

    When I put this one in, it didn't say there was any formatting issues with it.

    I suppose I could create the pair via the linux box itself.

    The issue I think is that I thought this was the only area that needed keys. I deleted these entries out of the /root/.ssh directory.



    Do the files in the /root/.ssh directory need to have these entries, or since I'm logging in with a non-root user do they even apply?

    I looked in /var/lib/openmediavault/ssh/authorized_keys/%u <-- replacing my %u with my user's name.

    I also chmod'd this directory to be 755.

    When I log in via putty, it's still refusing my key.

    Not sure what else to do. It appears that everything is configured correctly.

    I'd like to turn off my password authentication for this user when connecting to my OMV box.

    Any help would be greatly appreciated.

    Can someone help me to get my ownership corrected for my user to be able to ssh into my omv5 box with ssh keys?

    i've got the public key added for this user in the web ui.

    What command do I need to run to change the ownership and keep the "Server refused our key" from happening via Putty log in.


    when I run vainfo, after installing the items above I am getting this error:
    ~# vainfo
    error: XDG_RUNTIME_DIR not set in the environment.
    error: can't connect to X server!
    libva info: VA-API version 0.39.4
    libva info: va_getDriverName() returns -1
    libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
    vaInitialize failed with error code -1 (unknown libva error),exit