Skip to content

Instantly share code, notes, and snippets.

@fedemzcor
Forked from justinpawela/config
Created February 20, 2019 23:09
Show Gist options
  • Save fedemzcor/355515b3374274f9221f01f040879f32 to your computer and use it in GitHub Desktop.
Save fedemzcor/355515b3374274f9221f01f040879f32 to your computer and use it in GitHub Desktop.

Revisions

  1. @justinpawela justinpawela created this gist Aug 3, 2016.
    24 changes: 24 additions & 0 deletions config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # This file is: ~/.ssh/config

    # You may have other (non-CodeCommit) SSH credentials stored in this
    # config file – in addition to the CodeCommit settings shown below.

    # NOTE: Make sure to run [ chmod 600 ~/.ssh/config ] after creating this file!

    # Credentials for Account1
    Host awscc-account1 # 'awscc-account1' is a name you pick
    Hostname git-codecommit.us-east-1.amazonaws.com # This points to CodeCommit in the 'US East' region
    User A1EXAMPLE01234567891 # UserID as provided by IAM Security Credentials (SSH)
    IdentityFile ~/.ssh/account1-awsCC-rsa # Path to corresponding key file

    # Credentials for Account2
    Host awscc-account2
    Hostname git-codecommit.us-east-1.amazonaws.com
    User A2EXAMPLE01234567892
    IdentityFile ~/.ssh/account2-awsCC-rsa

    # Credentials for Account3
    Host awscc-account3
    Hostname git-codecommit.us-east-1.amazonaws.com
    User A3EXAMPLE01234567893
    IdentityFile ~/.ssh/account3-awsCC-rsa