本文主要是介绍jenkins 配置git秘钥,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
填写项目地址
首先需要在linux’服务器生成 git秘钥
ssh-keygen -t rsa
生成公钥 配置在gitlab/github 上
cat /root/.ssh/id_rsa.pub
查看私钥 配置在jekins 上(不要遗漏“-----BEGIN RSA PRIVATE KEY-----
”)
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAvo7GJfDgf8nJbS9/bDzG9aSpeDXt34Od8AXlnoCvisvXSGte
f7oQnQULMdl94XfvBmSx+5/BoT27S2K/Ry3+DUrZZKuLbpoOQ/OI3x0Vhcy60pJB
3gaMdRX2h/UqNWXRD3NahyOLmDzy4PHtO6klPU0RjYNQig+h4D1v8R7t1+ESdrH8
WS4m6voA5tXqJXgMuEwsGE3vC+ha9uxoe+luAh441IsiSQ+bUcyd0Crk6qfld3db
BNBTtTDimn3C6Qq4rnz2T8dhC83M9JwdUKe9OJ8IhrBPjpimzkzDtjHjTPD7JzOo
ZzXc6OCnLIj2u+6SaLwAwFzCjSzROTql2ElddwIDAQABAoIBAQC0IMYRi1bLtPUg
rutmZzUzcol3xpKq3AFpqElbwQ0uyG0iWcwkNMALjX79ijfB79sUUg8kaelg/7eS
FS/2mvUxn3VMAhR1Yk7l0MmrDhUQO2zGK9bzh4EyFKbL8eYKP8qVLld+swz7xXFZ
TZcQ9FztS3KyMFTrjMdZ7vloFfKCQu0iqEkyK3V0RBvO3Q4GmEA1p4p5cX97nPLv
w/+U0ZAKKPsZXhcKRg9jqzlPd737KAOfpN+8vgd10xYUtTfhJmhYsyMfbl0QjdeH
wkSFxT0oKO9jXIJ9id+2XGUpdjUgt5znhZivKdxq5/hdHh5pEg/j9Cn9u2AepzVz
pd+wdfwRAoGBAPegVtr4DFUGHwpUFORx1DSKBJnR2dG0dddha1roGlW/XYswQ0Wv
/hz/U9/XtGo9J/zCVE0qr+BPw8g788Y4Pcd7rCLl5jdGKKThN68dNKxchHdlR+kG
HUTBFMo0i2a5nQQZTuorSjeqtuPF8pEGJU65qG/OPgf0UmQjBIeLFheDAoGBAMUA
ZqsmjIs9bAaA7oH2n9/CiqW8DXJB0RXEgHPRJSKkdD2pVXScDj0Qod0CkPQTGzM3
LBCyW5vegq6/MI1QSKrR2yYy9EtBxxMcGqqmKBnWd4ORHUQ3wCYOlxQvgoIAaT1y
1B8zdIT3REVzNKs4RqtfhRlY6T18SOq3IwE5kIv9AoGBALDZVU6bOot6jK6esDEa
zngbXf/RLKQlIsgIrlhFTZGR0yf19wWNFIn3HBrQfewl8yoES5q08tjbfrLBhm85
eX2/aIef81PkimB+7Hrm+9hhVsXCkqHsmPiigMuMzUY3J9lmjcKV2jJ5fJadp4hF
gF2CILaA8DJUHoefrrty7PsrAoGAGhIYhDPgy5iAUEgFyFs8Ax+6u34shV9ibTAJ
E8qs0G3VGEftkDYKyFgII7hwOGzC379AbKE98F29C6UvprPmOfz1tJNvsvnsf4Hr
oYPFsM2qGVY9+kYqfp7VrY0wB0ZIpyIoIkzr8aDLfylk4ffbmlhUw+r5SvLEr5M2
5bWZhH0CgYEAyaEuFzZoCdEtT0RYESIE4FPMogajjSkRYWTiEbc55N0kgtJ3bmql
65ny/Jvu56WTn+mVqDGOT37ejN/XsmnX4KBDo4WknhIPK1FYJ0yDyYTvva1kSjjW
dckp4mu3ajuCsItnIZc6O02RwUl8ZhR94vG3cHd6QBHcItO4lfFK5nk=
-----END RSA PRIVATE KEY-----
这篇关于jenkins 配置git秘钥的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!