Featured image of post SSH-Keygen Generated Keys Cannot Be Used for Remote Connections, Sourcetree Unable to Operate Remote Repositories

SSH-Keygen Generated Keys Cannot Be Used for Remote Connections, Sourcetree Unable to Operate Remote Repositories

Sharing Git Keys and Xshell Keys

Xshell

Recently, using the command:
ssh-keygen to generate a private key could not be imported into Xshell for use.

Use the following new command to generate keys:

  • rsa indicates using RSA encryption
    ssh-keygen -m PEM -t rsa

Sourcetree

  • If keys are configured but Sourcetree consistently fails to operate remote repositories
  • Go to Tools -> Options -> General

Select OpenSSH and choose the id_rsa private key under your user directory.