Learn R Programming

paws.compute (version 0.7.0)

ec2instanceconnect_send_ssh_public_key: Pushes an SSH public key to the specified EC2 instance for use by the specified user

Description

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.

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

Usage

ec2instanceconnect_send_ssh_public_key(
  InstanceId,
  InstanceOSUser,
  SSHPublicKey,
  AvailabilityZone = NULL
)

Arguments

InstanceId

[required] The ID of the EC2 instance.

InstanceOSUser

[required] The OS user on the EC2 instance for whom the key can be used to authenticate.

SSHPublicKey

[required] The public key material. To use the public key, you must have the matching private key.

AvailabilityZone

The Availability Zone in which the EC2 instance was launched.