ssh agent and ssh add for git Permission denied

出现 *@github.com: Permission denied (publickey).

The reason is that ssh key file can not be found

Can use

ssh-add ~/.ssh/file.rsa

若出现 Could not open a connection to your authentication agent.

Enter the following command

ssh-agent bash

 The last test

 

Guess you like

Origin www.cnblogs.com/bushuosx/p/10965518.html