大家好,感謝提前,Rundeck - 無效的密碼運行在PowerShell中內嵌腳本關閉Windows節點
首先抱歉我的英文不好。我在使用Rundeck向遠程窗口節點執行內聯腳本時遇到問題。我的Rundeck正在Centos7上運行。 我的目標是:將我的腳本寫在rundeck上並在遠程PowerShell中執行它。
實際狀態:
我配置了WinRM的插件,節點...和它的作品,如果我用在工作配置中的遠程命令選項。例如一個簡單的ipconfig。還可以在節點上執行本地腳本,例如使用:powershell.exe $PATH/script.ps1
。這可能是一個解決方案,但我需要修改腳本而不連接到Windows節點。這個腳本不斷更新。出於這個原因,我只有內聯腳本選項。
我在Windows節點上配置了OpenSSH服務器以運行SCP。如果我通過ssh連接到rundeck,並輸入ssh [email protected]
,我可以在沒有密碼的情況下登錄。
好吧,當我嘗試此步驟啓動工作:
-Step type: Script – Inline script
-Script to execute: ipconfig (for example)
-Invocatión script: powershell.exe
-File extensión: .ps1
-Execution preview: $ powershell.exe "scriptfile.ps1 "
當我跑我的下一個錯誤的工作:
Authentication failure connecting to node: "Windoes Node". Password incorrect. Failed dispatching to node 「Windows Node」: [jsch-scp] Failed copying the file: Authentication failure connecting to node: "Windows Node". Password incorrect.
任何想法?我無法找到問題...
謝謝請從第二步Script to execute: ipconfig (for example)
來