CmdID / aws / aws ec2-instance-connect
aws ec2-instance-connect send-ssh-public-key
Pushes an SSH public key to the specified EC2 instance for use by the specified user. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--availability-zoneThe Availability Zone in which the EC2 instance was launched.--instance-idThe ID of the EC2 instance.--instance-os-userThe OS user on the EC2 instance for whom the key can be used to authenticate.--ssh-public-keyThe public key material.