Learn R Programming

paws.compute (version 0.7.0)

ec2instanceconnect_send_serial_console_ssh_public_key: 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.

See https://www.paws-r-sdk.com/docs/ec2instanceconnect_send_serial_console_ssh_public_key/ for full documentation.

Usage

ec2instanceconnect_send_serial_console_ssh_public_key(
  InstanceId,
  SerialPort = NULL,
  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.