Last active
November 23, 2023 11:55
-
-
Save vdm/ea3cada07dbb2be68b33c364d0fe6fca to your computer and use it in GitHub Desktop.
Import key from agent to EC2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aws --version | |
aws-cli/2.11.21 | |
$ aws ec2 import-key-pair --public-key-material "$(ssh-add -L)" --key-name $USER | |
Invalid base64: | |
$ aws --cli-binary-format raw-in-base64-out ec2 import-key-pair --public-key-material "$(ssh-add -L)" --key-name $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment