首页 > 解决方案 > 启用其他 KexAlgorihtms

问题描述

我需要使用以下任何一种方式对 rundeck 进行身份验证:curve25519-sha256@libssh.org,diffie-hellman-group18-sha512,curve25519-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512

但似乎只有以下选项可用:ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman- group-exchange-sha1,diffie-hellman-group1-sha1

有没有办法用开源版本做到这一点?

标签: authenticationssh

解决方案


rundeck/rundeck 问题 4349,显然不是。

OpenSSH Node Execution Plugins ”可能是一种有用的解决方法。

一种解决方法是:

使用脚本 exec/copy 而不是 jsch:

service.FileCopier.default.provider=script-copy
service.NodeExecutor.default.provider=script-exec
plugin.script-copy.default.command=scp ${file-copy.file} >${node.username}@${node.hostname}\:${file-copy.destination}
plugin.script-copy.default.remote-filepath=${node.destdir}/${file-copy.filename}
plugin.script-exec.default.command=ssh -o "StrictHostKeyChecking no" >${node.username}@${node.hostname} ${exec.command}
plugin.script-exec.default.shell=bash -c

推荐阅读