You can import a keypair created with a third-party tool. This action only imports the public key of the keypair, while you keep the private key. The public key is stored by 3DS OUTSCALE and, only available in the metadata of the instances for which the keypair is used. However, the private key is never provided to 3DS OUTSCALE.

You can import a keypair of the following format: RSA 1024-bits, RSA 2048-bits or RSA 4096-bits.

You can also generate a 2048-bit RSA format keypair using Cockpit or AWS CLI. For more information, see Creating a Keypair.

The following procedures are available:

Importing a Keypair Using Cockpit

  1. Click Network/Security > Keypairs.

  2. Click Import Keypair .
    The IMPORT KEYPAIR dialog box appears.

  3. Provide the following information:
    • In the Name field, type a name for the keypair.

      This name must be unique in your account, and contain between 1 and 255 ASCII printable characters. Accented letters are not allowed.

    • Click Browse and select the public key of the keypair you want to import.


      Never provide the private key of the keypair as it enables connection to your instances.

  4. Click Import to validate. 
    The keypair is created and appears on the Keypair page.

Importing a Keypair Using AWS CLI

  • To import a keypair, use the import-key-pair command following this syntax:

    Request sample
    $> aws ec2 import-key-pair \
        --profile YOUR_PROFILE \
        --key-name MyKeyPair \
        --public-key-material file://~/.ssh/id_rsa.pub \
        --endpoint https://fcu.eu-west-2.outscale.com 

    This command contains the following attributes that you need to specify:

    • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.
    • key-name: A unique name for the new keypair.

      This name must be unique in your account, and contain between 1 and 255 ASCII printable characters. Accented letters are not allowed.

    • public-key-material: The path to the public key you want to import.

      Never provide the private key of the keypair as it enables connection to your instances.

    • endpoint: The endpoint corresponding to the Region you want to send the request to.


    The import-key-pair command returns the following elements: 
    • KeyName: The unique name of the newly created keypair.
    • KeyFingerprint: The MD5 public key fingerprint as specified in section 4 of RFC 4716.
    Result sample
     {
      "KeyName": "MyKeyPair",
      "KeyFingerprint": "1a:11:aa:11:aa:11:a1:a1:1a:11:1a:11:1a:1a:a1:aa"
    } 

    A new keypair is imported from the specified public key.



AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.