类似scp的ssh URL
exampleip:/home/project/git-repo/single_login.git意味着运行Jenkins的帐户将查找带有条目的
~/.ssh/config文件
Hostexampleip。
Host exampleip HostName exampleip.ip User username IdentityFile /path/to/id_rsa_username
确保
id_rsa_username.pub已在处注册到远程示例服务器
~username/.ssh/authorized_keys。然后它将起作用。
但是您需要确定谁在运行Jenkins,以便将
~/.ssh/config文件设置在正确的位置。



