ssh - 使用 saltstack ssh

标签 ssh salt-stack

使用 salt-proxy ssh 和直接使用 salt-ssh 有区别吗?我很感兴趣,因为根据文档,两者都旨在在没有在终端机器上安装代理的情况下运行远程命令。

最佳答案

您不能简单地在代理 minion 上执行 salt-ssh,为此您必须为远程系统编写自己的自定义 ssh 接口(interface),因为您的代理 minion 可能不支持执行 salt-ssh。

如何在使用 salt-ssh 和 salt-proxy 之间进行选择完全取决于 minion 系统的类型。
如 saltstack 文档中所述 - https://docs.saltstack.com/en/latest/topics/ssh/index.html
https://docs.saltstack.com/en/latest/topics/proxyminion/index.html

要使用 salt-ssh,远程系统必须安装 python - 标准之一。比如从centos控制ubuntu。

如 salt 代理文档中所述,

Proxy minions are a developing Salt feature that enables controlling devices that, for whatever reason, cannot run a standard salt-minion. Examples include network gear that has an API but runs a proprietary OS, devices with limited CPU or memory, or devices that could run a minion, but for security reasons, will not.

关于ssh - 使用 saltstack ssh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43932177/

相关文章:

azure - 如何通过 SSH 连接到远程 PC 上运行的 Docker 容器?

linux - 在终端中所有打开的选项卡中执行一个命令

javascript - 将新密码添加到 ssh2-stream

bash - saltstack - 传递变量包含单引号、双引号、空格……到 cmd.script?

linux - 当您从 root 以外的任何用户进行 SSH 时,Paramiko exec_command 会挂起

windows - Sublime Git 推送主机 key 验证失败

jinja2 - saltstack jinja for 并行循环

jinja2 - 如何附加到字符串列表中的每个项目?

salt-stack - 如何使用 OpenSSL 生成 Salt Minion key 对?

dictionary - 如何在 salt 中将字典作为函数参数传递