markdown Git no Key

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Git no Key相关的知识,希望对你有一定的参考价值。

```
ssh-add -k ~/.ssh/id_rsa
```
AddKeysToAgent yes
How to fix

I fixed this by entering the following commands:

```
$ ssh-agent bash
```

This creates a new bash process that allows you to add private keys. When adding a new private key you will be prompted for the passphrase once and only once.

nd then:

```
$ ssh-add /home/username/.ssh/id_rsa
Enter passphrase for /home/username/.ssh/id_rsa: 
Identity added: /home/username/.ssh/id_rsa (/home/username/.ssh/id_rsa)
```

...where username is your username. You can do the same using $USER variable:


```
$ ssh-add /home/$USER/.ssh/id_rsa
```

Alternatively, just use ~ for your home directory.

```
$ ssh-add ~/.ssh/id_rsa
```

And the problem was fixed.

以上是关于markdown Git no Key的主要内容,如果未能解决你的问题,请参考以下文章

mac系统idea开发工具git -push 报错:no matching host key type found. Their offer: ssh-dss

JAVAEclipse中使用git进行pull远程代码,报错The current branch is not configured for pull No value for key branc

xshell怎么导入public key

github拉取代码报:You‘re using an RSA key with SHA-1, which is no longer allowed

Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(

markdown JS / no-js类