The expected permissions are 600 for private keys and 644 for public keys. This is what it looks like for me on Ubuntu Lunar running 23.1.1:
root@lunar:/etc/ssh# ll ssh_host_*
-rw------- 1 root root 1385 Mar 13 16:20 ssh_host_dsa_key
-rw-r--r-- 1 root root 600 Mar 13 16:20 ssh_host_dsa_key.pub
-rw------- 1 root root 505 Mar 13 16:20 ssh_host_ecdsa_key
-rw-r--r-- 1 root root 172 Mar 13 16:20 ssh_host_ecdsa_key.pub
-rw------- 1 root root 399 Mar 13 16:20 ssh_host_ed25519_key
-rw-r--r-- 1 root root 92 Mar 13 16:20 ssh_host_ed25519_key.pub
-rw------- 1 root root 2590 Mar 13 16:20 ssh_host_rsa_key
-rw-r--r-- 1 root root 564 Mar 13 16:20 ssh_host_rsa_key.pub
Are you saying that 23.1.1 doesn't have these permissions on your platform, or are you expecting different permissions?
The expected permissions are 600 for private keys and 644 for public keys. This is what it looks like for me on Ubuntu Lunar running 23.1.1: /etc/ssh# ll ssh_host_* dsa_key. pub ecdsa_key. pub ed25519_ key ed25519_ key.pub rsa_key. pub
root@lunar:
-rw------- 1 root root 1385 Mar 13 16:20 ssh_host_dsa_key
-rw-r--r-- 1 root root 600 Mar 13 16:20 ssh_host_
-rw------- 1 root root 505 Mar 13 16:20 ssh_host_ecdsa_key
-rw-r--r-- 1 root root 172 Mar 13 16:20 ssh_host_
-rw------- 1 root root 399 Mar 13 16:20 ssh_host_
-rw-r--r-- 1 root root 92 Mar 13 16:20 ssh_host_
-rw------- 1 root root 2590 Mar 13 16:20 ssh_host_rsa_key
-rw-r--r-- 1 root root 564 Mar 13 16:20 ssh_host_
Are you saying that 23.1.1 doesn't have these permissions on your platform, or are you expecting different permissions?