Hello!
I've followed this guide in configuring SSH.
I have generated lots of keys, some in puttygen and some in windows CLI, the pub and the private keys, none of pairs worked.
The pub keys I export using commands given in the guide:
ssh-keygen -e -f ~/.ssh/sshremote.pub
where sshremote.pub is my generated key.
I copy the output and put it in OMV web in users > edit > public key > add, and the keys follows the same pattern:
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20191115"
AAAAB3NzaC1yc2EAAAABJQAAAQEAxRmx+tAb6YqwVo9uYOdplmm775HHoNF3FPFx
fig35x6biVaPLkrOlAntgm4BhkmJ4ilnv6yBPvtPU/3H50VuBTy9CT70Q0QnSUWJ
ew7Io8YQS0xDMDS/aJu3uKP0rWY9f0lFPUO9D+AKsoqNwgvApQ7f3n6ZELxBza5d
uf0d+SOhRi0UEaR+FlgfVNXCUHiacP9jsp9BqMbnsSLEwmsSMQmTcmhS0mZLUYxC
FEFCU0u9WTHy2CHmRuRQIJJ5kwKZXj73grUJnJOnfOdJ2sCqc7SZL51zm3LHs2RV
NfAE7NUQ2ZOXpI7xDTH6Aq60PBnL1DeuWAoZKbbVoxiHkYZ3aw==
---- END SSH2 PUBLIC KEY ----
This one have been generated in putty, saved as public key and is copy to "user public key" in OMV Web.
I have tried others keys generated in windows CLI and on linux on windows too.
Then I try to open a connection using putty and the private key pair, and the same message "server refused our key" and fallback to password login if it is enabled.
I tried with a fresh OMV install, new user, and the user is in ssh group. I can use it without PKA, with just password, but the problem with PKA persists for months and I never found how to solve it, so now I decided to post it here.
I'm far from knowing linux and I try to not mess with system files or where the keys are stored, so I prefer to use only web interface and minimum work on system files.
I made an album in imgur showing step-by-step how this happens, I couldnt post here because it shows "must be under 10k characters."
And if I try to use just password it works nicely.
More info: OMV 4 and my PC is a Windows 10 machine. I did manage to get it working once, but had to reinstall OMV and never managed to make it work again