CmdID / aws / aws ec2-instance-connect
aws ec2-instance-connect send-serial-console-ssh-public-key
Pushes an SSH public key to the specified EC2 instance. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--instance-idThe ID of the EC2 instance.--serial-portThe serial port of the EC2 instance.--ssh-public-keyThe public key material.