Check If You Have Existing Default Identity

The Git Bash shell comes with an SSH client. Do the following to verify your installation:

  • Double-click the Git Bash icon to start a terminal session.
  • Enter the following command to verify the SSH client is available:
    manthony@MANTHONY-PC ~
    $ ssh -v
    OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
    usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
    [-D [bind_address:]port] [-e escape_char] [-F configfile]
    [-i identity_file] [-L [bind_address:]port:host:hostport]
    [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
    [-R [bind_address:]port:host:hostport] [-S ctl_path]
    [-w local_tun[:remote_tun]] [user@]hostname [command]
            
    
  • If you have ssh installed, go to the next step.
    If you don't have ssh installed, install it now with your package manager.
  • List the contents of your ~/.ssh directory.
    If you have not used SSH on Bash you might see something like this:
    manthony@MANTHONY-PC ~
    $ ls -a ~/.ssh
    ls: /c/Users/manthony/.ssh: No such file or directory
            
    

    If you have a default identity already, you'll see two id_* files:

    manthony@MANTHONY-PC ~
    $ ls -a ~/.ssh
    .    ..    id_rsa    id_rsa.pub  known_hosts
            
    

    In this case, the default identity used RSA encryption (id_rsa.pub). If you want to use an existing default identity for your Bitbucket account, skip the next section and go to create a config file.