Skip to content

/AWS1/CL_E2I=>SENDSERIALCONSOLESSHPUBKEY()

About SendSerialConsoleSSHPublicKey

Pushes an SSH public key to the specified EC2 instance. The key remains for 60 seconds, which gives you 60 seconds to establish a serial console connection to the instance using SSH. For more information, see EC2 Serial Console 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_SSHPUBLICKEY TYPE /AWS1/E2ISSHPUBLICKEY /AWS1/E2ISSHPUBLICKEY

The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.

Optional arguments:

IV_SERIALPORT TYPE /AWS1/E2ISERIALPORT /AWS1/E2ISERIALPORT

The serial port of the EC2 instance. Currently only port 0 is supported.

Default: 0

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_E2ISENDSERIALCONSOL01 /AWS1/CL_E2ISENDSERIALCONSOL01