Imports the public key from an RSA key pair created with a third-party tool. This operation differs from CreateKeyPair as the private key is never transferred between the caller and AWS servers.
RSA key pairs are easily created on Microsoft Windows and Linux
OS systems using the
The following formats are supported:
- OpenSSH public key format,
- Base64 encoded DER format.
- SSH public key file format as specified in RFC4716 .
Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public virtual ImportKeyPairResponse ImportKeyPair( ImportKeyPairRequest request )
Parameters
- request
-
Type: Amazon.EC2.Model.ImportKeyPairRequest
Return Value
Type: Amazon.EC2.Model.ImportKeyPairResponse
The response from the ImportKeyPair service method, as returned by AmazonEC2.
Type: Amazon.EC2.Model.ImportKeyPairResponse
The response from the ImportKeyPair service method, as returned by AmazonEC2.
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5