multiple git accounts for aws

# 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

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source