> For the complete documentation index, see [llms.txt](https://hexoscript.gitbook.io/hexo-script/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hexoscript.gitbook.io/hexo-script/1.3-1/shi-yong-bu-zhou/yi-jian-sheng-cheng-ssh-mi-yao.md).

# 一键生成SSH秘钥

## git\_ssh的使用

您需要在存放install.sh脚本的目录中,右键打开git bash运行以下命令:

```bash
./install.sh git_ssh
```

![](/files/-Llysn3EaGuJyGT8TerP)

可以看到会有四条可执行命令,输入对应数字可以执行对应的命令

> 1\)Key
>
> 2\)SSH
>
> 3\)Verify-github
>
> 4\)Verify-coding

{% hint style="info" %}
1\)Key 执行1后可以一键生成秘钥

如果你的电脑已经存在秘钥,程序将会自动退出
{% endhint %}

{% hint style="info" %}
2\)SSH 执行2后可以查看你电脑中已生成的秘钥]
{% endhint %}

{% hint style="info" %}
3\)Verify-github 执行3后可以检查秘钥是否配置github成功
{% endhint %}

{% hint style="info" %}
4\)Verify-coding 执行4后可以检查秘钥是否配置coding成功
{% endhint %}

{% hint style="success" %}
生成秘钥后别忘记将秘钥添加到账号里,否则秘钥不会配置成功
{% endhint %}
