Skip to content
This repository was archived by the owner on Mar 6, 2022. It is now read-only.

correct file ref when using --public-ket-material #191

Merged
merged 1 commit into from May 21, 2021
Merged

correct file ref when using --public-ket-material #191

merged 1 commit into from May 21, 2021

Conversation

ghost
Copy link

@ghost ghost commented May 20, 2021

It seems that with the new aws-cli when using --public-key-material flag to import SSH key, we need to use fileb instead of file.
As it stands currently, import will report An error occurred (InvalidKey.Format) when calling the ImportKeyPair operation: Key is not in valid OpenSSH public key format.

According to this issue: aws/aws-cli#4969 (comment) fileb seems to resolve the problem.

It seems that with the new aws-cli when using --public-key-material flag to import SSH key, we need to use `fileb` instead of  `file`.
As it stands currently, import will report *An error occurred (InvalidKey.Format) when calling the ImportKeyPair operation: Key is not in valid OpenSSH public key format*.

According to this issue: aws/aws-cli#4969 (comment) `fileb` seems to resolve the problem.
@dan-v
Copy link
Owner

dan-v commented May 21, 2021

Thanks @Caasi-dev!

@dan-v dan-v merged commit 962e547 into dan-v:11.0 May 21, 2021
@ghost
Copy link
Author

ghost commented May 21, 2021

My pleasure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant