This was the fix, btw:
This was the fix, btw:
Here's my ssh_config if that will help to diagnose:
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
AllowGroups root ssh
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 /var/lib/openmediavault/ssh/authorized_keys/%u
Can anyone help me to get past this dead end?
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/id_rsa.pub
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.
BTW, thanks for jumping in to help!
The id_* entries in the /root/.ssh directory belong to the root user. If it turns out you need them in the future they will have to be regenerated.
You haven't answered my other questions.
Expand the comments section above, I answered them in bold.
Have you enabled public key authentication in OMV | Services | SSH?
What does the public key look like in an editor - all on one line or multiple lines?
all in one line
Where did you generate the key?
puttygen. copied the text from the large text box (the entire contents) after loading the private.ppk
When you copied the key to OMV exactly how did you do it?
I copied the key from the last step into the users-->public keys
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.
I checked the public keys and they match. I'm using Putty to create my keys. What is the format that the private keys needs to be in?
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.
I installed the 'intel-gpu-tools' package.
When I run the 'intel_gpu_top' command, I get a "Couldn't Find Intel Graphics Card"
Assuming this just isn't going to work. Thanks for the help.
One more bump hoping someone can help. QuickSync on a Debian based system.
Can anyone help me troubleshoot?
Souldn't the installs you gave me earlier have installed the driver?
when I run vainfo, after installing the items above I am getting this error:
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
Nope, but I'll try it. Thanks