markdown 生成SSH密钥对

Posted

tags:

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

1. Start the ssh-agent in the background.
```
eval "$(ssh-agent -s)"
```
2. If you're using macOS Sierra 10.12.2 or later, you will need to modify your ~/.ssh/config file to automatically load keys into the ssh-agent and store passphrases in your keychain.
```
Host *
 AddKeysToAgent yes
 UseKeychain yes
 IdentityFile ~/.ssh/id_rsa
```
3. Add your SSH private key to the ssh-agent and store your passphrase in the keychain. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_rsa in the command with the name of your private key file.
```
ssh-add -K ~/.ssh/id_rsa
```

以上是关于markdown 生成SSH密钥对的主要内容,如果未能解决你的问题,请参考以下文章

markdown SSH密钥生成和

如何生成ssh密钥对

如何将使用 PuTTYgen (Windows) 生成的 SSH 密钥对转换为 ssh-agent 和 Keychain (Linux) 使用的密钥对

Linux主机生成密钥对

以编程方式生成 SSH 密钥对(c# windows)

github上需要生成密钥对:ssh key