mirror of https://github.com/CISOfy/lynis.git
Only use public keys for host ID creation
This commit is contained in:
parent
05cb1e8a77
commit
50609242c2
|
@ -783,7 +783,7 @@
|
|||
if [ "${HOSTID}" = "" ]; then
|
||||
LogText "Result: no HOSTID available, trying to use SSH key as unique source"
|
||||
# Create host ID when a MAC address was not found
|
||||
SSH_KEY_FILES="ssh_host_ed25519_key ssh_host_ed25519_key.pub ssh_host_ecdsa_key ssh_host_ecdsa_key.pub ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub"
|
||||
SSH_KEY_FILES="ssh_host_ed25519_key.pub ssh_host_ecdsa_key.pub ssh_host_dsa_key.pub ssh_host_rsa_key.pub"
|
||||
if [ -d /etc/ssh ]; then
|
||||
for I in ${SSH_KEY_FILES}; do
|
||||
if [ "${HOSTID}" = "" ]; then
|
||||
|
|
Loading…
Reference in New Issue