Created
November 23, 2021 07:51
-
-
Save Gershon-A/26c293797066623d585b7a4505f4dc71 to your computer and use it in GitHub Desktop.
AWS CodeBuild create new file - id_rsa
This file contains 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
``` | |
- mkdir -p ~/.ssh | |
- | | |
cat <<'EOF' >> /root/.ssh/id_rsa | |
-----BEGIN OPENSSH PRIVATE KEY----- | |
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn | |
....... | |
Ql5XBc4URDIP4ttLefoiQqTlQ44jhsvNQew0Y6nWW8FGbAboJ8aBNKtmREEXBGTImds5dg | |
2Vtten/iK+Qh0AAAAabWFyYXRzdHJlbGV0c0BNQlAwMDIubG9jYWwB | |
-----END OPENSSH PRIVATE KEY----- | |
EOF | |
- chmod 600 ~/.ssh/id_rsa | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment