# 一键生成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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hexoscript.gitbook.io/hexo-script/1.3-1/shi-yong-bu-zhou/yi-jian-sheng-cheng-ssh-mi-yao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
