CmdID / aws / aws lightsail
aws lightsail import-key-pair
Imports a public SSH key from a specific key pair. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--key-pair-nameThe name of the key pair for which you want to import the public key.--public-key-base64A base64-encoded public key of the ssh-rsa type.