Ensure Azure Linux scale set uses an SSH key

Error: Azure Linux scale set does not use an SSH key

Bridgecrew Policy ID: BC_AZR_GENERAL_13
Checkov Check ID: CKV_AZURE_49
Severity: HIGH

Azure Linux scale set does not use an SSH key

Description

The default option for a Linux scale set uses basic authentication as an access credential for the secure shell network protocol.

We recommend that you use SSH key-based access for a Linux scale set.

Fix - Buildtime

Terraform

Resource: azurerm_linux_virtual_machine_scale_set
Attribute: disable_password_authentication

resource "azurerm_linux_virtual_machine_scale_set" "example" {
            ...
          ~ disable_password_authentication = true
        }

Did this page help you?