This topic describes how to create an SSH key pair in the ECS console. After a key pair is created, immediately download and save its private key to a safe location. To log on to an ECS instance that is bound with a key pair, you must have the private key. You can have maximum of 500 key pairs in a region.


  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Network & Security > SSH Key Pair.
  3. In the top navigation bar, select a region.
  4. Click Create SSH Key Pair.
  5. Enter a key pair name and set Creation Type to Auto-create.
    The key pair name must be unique.
  6. Click OK.

What to do next

Attach or remove an SSH key pair