Virtual machines in Azure should use SSH authentication keys for security

このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください

Description

Use SSH authentication keys to secure Linux virtual machines.

Rationale

Using SSH to secure authentications is a security best practice, as traditional username and password authentication is vulnerable to malicious tactics such as brute-force attacks. SSH uses a combination of public and private key pairs to secure the authentication process. Access to the private key is automated and tightly controlled, without both keys SSH access will not be granted. This also eliminates the need for users to memorize complex passwords for virtual machine access.

Remediation

From the command line

  1. Follow the steps listed at Detailed steps: Create and manage SSH keys for authentication to a Linux VM in Azure to create and deploy VMs using SSH.
  2. If needing to transition from Username and Password authentication, to SSH, there is no way to transition directly. You must deprovision the current VM and create an image of it with SSH as the authentication method. Follow the steps on How to create a managed image of a virtual machine or VHD.