Getting Information About Your Keypairs

You can get information about your imported and generated keypairs.

Information about the public parts of your keypairs is also available from within the associated instances themselves. For more information, see Accessing the Metadata and User Data of an Instance.

Getting Information About Your Keypairs Using Cockpit v1

Getting Information About Your Keypairs Using Cockpit v2-beta

See the Keypairs dashboard.

Getting Information About Your Keypairs Using OSC CLI

See the ReadKeypairs command sample in the documentation of the OUTSCALE API.

Getting Information About Your Keypairs Using AWS CLI

To get information about one or more keypairs, use the describe-key-pairs command following this syntax:

Request sample
$ aws ec2 describe-key-pairs \
    --profile YOUR_PROFILE \
    --key-name MyKeyPair \
    --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-names: The name of one or more keypairs about which you want to get information.

  • (optional) filters: One or more filters. The following filters are available:

    • key-name: The name of one or more keypairs.

    • key-fingerprint: The MD5 public key fingerprint as specified in section 4 of RFC 4716.

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

The describe-key-pairs command returns the following elements:

  • KeyPairs: Information about one or more keypairs. This element contains the following information:

    • KeyName: The name of the keypair.

    • KeyFingerprint: The MD5 public key fingerprint as specified in section 4 of RFC 4716.

Result sample
{
    "KeyPairs": [
        {
            "KeyName": "MyKeyPair",
            "KeyFingerprint": "1a:11:aa:11:aa:11:a1:a1:1a:11:1a:11:1a:1a:a1:aa"
        }
    ]
}

Related Pages

Corresponding API Methods

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