Skip to content

Instantly share code, notes, and snippets.

@nilforooshan
Created May 6, 2025 23:24
Show Gist options
  • Save nilforooshan/714a78c7c5a45b8257aa5eee38dc01aa to your computer and use it in GitHub Desktop.
Save nilforooshan/714a78c7c5a45b8257aa5eee38dc01aa to your computer and use it in GitHub Desktop.
aws: Access GitHub on EC2

Access GitHub on EC2

  • On the EC2 instance, type ssh-keygen.
  • Got to: GitHub » Settings » SSH and GPG keys » New SSH Key
  • Give it a title and copy the contents of ~/.ssh/id_rsa.pub in the EC2 into the Key box.
  • To check the success, type ssh [email protected] on the EC2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment