【发布时间】:2020-10-15 05:25:09
【问题描述】:
我在 IBM 云上有一个 openshift 集群。我想通过 Putty 使用 SSH 连接到工作节点,但文档说,
SSH by password is unavailable on the worker nodes.
有没有办法连接到这些?
【问题讨论】:
-
您指的是这个文档吗? cloud.ibm.com/docs/… 它说如何解决它
我在 IBM 云上有一个 openshift 集群。我想通过 Putty 使用 SSH 连接到工作节点,但文档说,
SSH by password is unavailable on the worker nodes.
有没有办法连接到这些?
【问题讨论】:
如果您在 IBM 云上使用 OpenShift v4,您可以使用 oc debug node/<target node name> 而不是 SSH 访问您的工作程序节点。 oc debug node 命令在目标节点上为终端会话启动一个临时 pod。您可以通过 Pod 像通常的 SSH 会话一样检查和运行 linux 命令。试试看。
【讨论】:
对 OpenShift 中工作节点的 SSH 访问是 disabled for security reasons。 The documentation suggests to use DaemonSets for actions to be performed on worker nodes.
【讨论】: