Create A SSH Config File

  • Using your favorite text editor, edit an existing (or create a new) ~/.ssh/config file.
  • Add an entry to the configuration file using the following format:

    Host bitbucket.org
    IdentityFile ~/.ssh/<em>privatekeyfile</em>

    The second line is indented. That indentation (a single space) is important, so make sure you include it. The second line is the location of your private key file. If you are following along with these instructions, your file is here:

     ~/.ssh/id_rsa
            
    

    When you are done editing, your configuration looks similar to the following:

    Host bitbucket.org
     IdentityFile ~/.ssh/id_rsa
            
    
  • Save and close the file.
  • Restart the GitBash terminal.