配置:: https://1drv.ms/t/s!AizscpxS0QM4hJo9MJWA6CKzd1BOwQ(Kerberos身份验证域用户)
可以运行命令againts windows node,OpenSSH安装,手动scp拷贝工作从linux到windows
if($_POST["submit"] && isset($_POST["submit"])){
global $connect;
$name = $_POST['name'];
$email = $_POST['email'];
$comment = $_POST["comment"];
if(!empty($_POST["name"]) && !empty($_POST["email"]) && !empty($_POST["comment"])){
$sql = "INSERT INTO entries (fullName,email,comment)
VALUES ('$name', '$email', '$comment')";
$result = mysqli_query($connect, $sql);
if(!$result){
die("try again" .mysqli_error());
}
} else {
echo 'You must enter enter a value for all fields.';
}
}
,公钥认证在没有问题的情况下工作,但是当尝试在Job获取中运行powershell脚本时:
scp somefile rundeck@test.com@WIN-II425CK1GMO.test.com:/C:
我的赌注是因为2 TEST.COM@192.168.0.13
Script Failed dispatching to node DC: [jsch-scp] Failed copying the file: TEST.COM@192.168.0.13
Execution failed: 55 in project windows: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [DC: HostNotFound: [jsch-scp]
Failed copying the file: TEST.COM@192.168.0.13]}, Node failures: {DC=[HostNotFound: [jsch-scp] Failed copying the file: TEST.COM@192.168.0.13]}, status: failed]
但不知道如何绕过它
答案 0 :(得分:0)
而不是WinRM,在resources.xml
<node name="dc" description="My windows" tags="node2" hostname="192.168.0.13" osArch="x86_64" osFamily="Windows" osName="Windows Server 2016" username="rundeck" ssh-key-storage-path="keys/Linuxtopic/server.1key" />
删除了用户名(@test.com)
中的域名部分,因此jsch-scp
未与双@
混淆