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

posted on 2019-09-24 15:31  正义的伙伴!  阅读(317)  评论(0编辑  收藏  举报

导航

//增加一段JS脚本,为目录生成使用