Skip to content

Instantly share code, notes, and snippets.

View halibal's full-sized avatar
💭
Plotting 🥷

Halibal halibal

💭
Plotting 🥷
View GitHub Profile

SSH Key Issue Resolution for Yarn Install with GitHub

Overview

When running yarn install in a project that required fetching dependencies over SSH from GitHub, the installation process failed with a Permission denied (publickey) error. This document outlines the steps followed to resolve the issue, including troubleshooting SSH keys, passphrase prompts, and configuring the environment for a successful installation.

Problem

When attempting to install dependencies via yarn, an error occurred when Git tried to access a private repository through SSH. The error looked like this: