ERROR: Repository not found. fatal: The remote end hung up unexpectedly, Permission denied (publickey)


ERROR: Repository not found. fatal: The remote end hung up unexpectedly

Quick Steps:

SSH_AUTH_SOCK=0
exec ssh-agent bash
ssh-add ~/.ssh/id_rsa

Detailed Insight Steps:

1. Run this command

SSH_AUTH_SOCK=0

2. Then Run this command

 ssh-add -l

You will see

Could not open a connection to your authentication agent.

3. Run this command

exec ssh-agent bash

4. Again Run this command

 ssh-add -l

You will see
The agent has no identities.

5. Now run this command

ssh-add ~/.ssh/id_rsa

You’ll see

Identity added: Path of private key

6. Run this command

 ssh-add -l

It will show
2048 5d:66:70:8a:00:e1:47:43:y1:11:44:9b:98:d1:e3:f3 path_to_private_key (RSA)

Advertisements

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with: , , , , , , , ,
Posted in Github, github, ssh

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

StackOverFlow
Categories
Archives
%d bloggers like this: