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.
See https://www.paws-r-sdk.com/docs/ec2instanceconnect_send_serial_console_ssh_public_key/ for full documentation.
ec2instanceconnect_send_serial_console_ssh_public_key(
InstanceId,
SerialPort = NULL,
SSHPublicKey
)
[required] The ID of the EC2 instance.
The serial port of the EC2 instance. Currently only port 0 is supported.
Default: 0
[required] 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.