Skip to content

Send Serial Console Ssh Public Key

ec2instanceconnect_send_serial_console_ssh_public_key R Documentation

Pushes an SSH public key to the specified EC2 instance

Description

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.

Usage

ec2instanceconnect_send_serial_console_ssh_public_key(InstanceId,
  SerialPort, SSHPublicKey)

Arguments

InstanceId

[required] The ID of the EC2 instance.

SerialPort

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

Default: 0

SSHPublicKey

[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.

Value

A list with the following syntax:

list(
  RequestId = "string",
  Success = TRUE|FALSE
)

Request syntax

svc$send_serial_console_ssh_public_key(
  InstanceId = "string",
  SerialPort = 123,
  SSHPublicKey = "string"
)