指定 ssh key 算法.
Signed-off-by: lion.chan <cy187lion@sina.com>
This commit is contained in:
parent
276e1c24d8
commit
94b924d707
@ -35,9 +35,11 @@ git config --global http.postBuffer 524288000
|
||||
如果想访问远程 Git 服务器,则最好通过 SSH 方式。这需要先生成 RSA 密钥,然后将公钥部署到远程服务器上即可。生成 RSA 密钥可使用 OpenSSH,命令如下(Windows 下该命令位于 /\<git 安装目录\>/usr/bin/ 下,可使用 Git Bash 直接访问):
|
||||
|
||||
```bash
|
||||
ssh-keygen
|
||||
ssh-keygen -t ecdsa
|
||||
```
|
||||
|
||||
**注意:新版本 Windows10 及以上系统不再支持 RSA 算法,必须通过 ssh-keygen 的 -t 参数指定另外的算法,否则无法正常克隆/提交代码等。**
|
||||
|
||||
之后一路回车,生成文件为:
|
||||
|
||||
```bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user