Hi everyone!
I think I found the error
Check your files in /etc/ssh
ls -la /etc/ssh
You may get something like this:
-rw------- 1 root root 246880 Aug 5 09:34 moduli
-rw------- 1 root root 1642 Aug 5 09:34 ssh_config
-rw------- 1 root root 0 Sep 19 04:18 ssh_host_dsa_key
-rw------- 1 root root 0 Sep 19 04:18 ssh_host_dsa_key.pub
-rw------- 1 root root 0 Sep 19 04:18 ssh_host_ecdsa_key
-rw------- 1 root root 0 Sep 19 04:18 ssh_host_ecdsa_key.pub
-rw------- 1 root root 0 Sep 19 04:18 ssh_host_ed25519_key
-rw------- 1 root root 0 Sep 19 04:18 ssh_host_ed25519_key.pub
-rw------- 1 root root 0 Sep 19 04:18 ssh_host_rsa_key
-rw------- 1 root root 0 Sep 19 04:18 ssh_host_rsa_key.pub
-rw------- 1 root root 3522 Sep 21 01:41 sshd_config
As you can see, the keys have size 0.
I deleted all the keys with:
rm ssh_host_*
Then generated my own with:
ssh-keygen -t rsa -b 4096
ssh-keygen -t dsa
ssh-keygen -t ecdsa
ssh-keygen -t ed25519
Specifying the destination of the file as
/etc/ssh/ssh_host_rsa_key
/etc/ssh/ssh_host_dsa_key
/etc/ssh/ssh_host_ecdsa_key
/etc/ssh/ssh_host_ed25519_key
Just after this, everything works as expected. I don't know which component has generated this keys so I don't know where to fix it...
I am running unRAID v6.2
Regards