ec2instanceconnect_send_ssh_public_key: Pushes an SSH public key to the specified EC2 instance for...

View source: R/ec2instanceconnect_operations.R

ec2instanceconnect_send_ssh_public_keyR Documentation

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.


paws.compute documentation built on Sept. 12, 2024, 6:12 a.m.