Three Ways to Git Clone with a Different SSH Key
Recca Tsai
Originally published at recca0120.github.io You have access to a GitHub repo, but the SSH key isn't the default ~/.ssh/id_rsa or ~/.ssh/id_ed25519 . Running git clone directly gives you Repository not found . This post covers three ways to specify which SSH key to use, including the common pitfall with ~/.ssh/config Host aliases. The Problem I needed to clone a private repo: git clone git@github.com:client-org/project.git The SSH key required for this repo is ~/.ssh/client_key , not the system d
