生成 SSH
config文件内容
# 配置文件参数
# Host Host可以看作是一个你要识别的模式,对识别的模式,进行配置对应的的主机名和ssh文件
# HostName 要登录主机的主机名
# User 登录名
# IdentityFile 指明上面User对应的identityFile路径
# gitlab-192.168.20.129
Host gitlab.example.com
HostName 192.168.20.129
PreferredAuthentications publickey
IdentityFile C:\Users\mingj\.ssh/id_rsa
# gitlab-IDC-http://10.10.160.32
Host 10.10.160.32
HostName 10.10.160.32
PreferredAuthentications publickey
IdentityFile C:\Users\mingj\.ssh/id_rsa
# gitlab-AliYun-http://10.0.2.129/
Host 10.0.2.129
Port 40022
HostName 10.0.2.129
PreferredAuthentications publickey
IdentityFile C:\Users\mingj\.ssh/id_rsa
# github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile C:\Users\mingj\.ssh/id_rsa