ssh — AWS CLI 2.31.36 Command Reference
Use the AWS CLI 2.31.36 to run the ec2-instance-connect ssh command.