gitlab 配置 ssh

#1 

ssh-keygen -o -t rsa -b 4096 -C "xxxxxxxx@qq.com"

一路回车,不输入密码

#2

在 C:/Users/当前登录用户建立 config 文件 (无后缀名),写入

Host git@192.168.0.30
    HostName http://192.168.0.30
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa

#3

复制 *.pub 到 文本框

 

#4 添加 远程仓库地址

git remote add local git@192.168.0.30:tour-group/java-util.git

原文地址:https://www.cnblogs.com/whm-blog/p/11578553.html