![](/img/trans.png)
[英]Remote File Transfer from one linux machine to another linux machine
[英]Copying a file from one linux machine to another using Jenkins
我正在Jenkins从事CICD方面的工作。 我有两台Linux机器machine1和machine2。 我已经在machine1上安装了Jenkins,并使用scp sh命令使用JenkinsFile和groovy将文件从machine1复制到machine2,但是它失败了,因为它提示运行时运行JenkinsFile的凭据,但无法每次都提供给它。 因此,有什么方法可以在不提示输入凭据的情况下复制文件到machine2。 提前致谢。
您可以使用发布/专用密钥代替密码。 如果您在安装密码时未提供密码,则该密码无需提示输入凭据即可工作。
查看以下任何内容,它们以简单的步骤说明了运行哪些命令来设置无密码安全外壳程序访问:
http://www.phcomp.co.uk/Tutorials/Unix-And-Linux/ssh-passwordless-login.html
http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.