![](/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.