/AWS1/CL_E2I=>SENDSSHPUBLICKEY()
¶
About SendSSHPublicKey¶
Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_INSTANCEID
TYPE /AWS1/E2IINSTANCEID
/AWS1/E2IINSTANCEID
¶
The ID of the EC2 instance.
IV_INSTANCEOSUSER
TYPE /AWS1/E2IINSTANCEOSUSER
/AWS1/E2IINSTANCEOSUSER
¶
The OS user on the EC2 instance for whom the key can be used to authenticate.
IV_SSHPUBLICKEY
TYPE /AWS1/E2ISSHPUBLICKEY
/AWS1/E2ISSHPUBLICKEY
¶
The public key material. To use the public key, you must have the matching private key.
Optional arguments:¶
IV_AVAILABILITYZONE
TYPE /AWS1/E2IAVAILABILITYZONE
/AWS1/E2IAVAILABILITYZONE
¶
The Availability Zone in which the EC2 instance was launched.