Skip to content

Instantly share code, notes, and snippets.

@Gershon-A
Created November 23, 2021 07:51
Show Gist options
  • Save Gershon-A/26c293797066623d585b7a4505f4dc71 to your computer and use it in GitHub Desktop.
Save Gershon-A/26c293797066623d585b7a4505f4dc71 to your computer and use it in GitHub Desktop.
AWS CodeBuild create new file - id_rsa
```
- 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