【问题标题】:Could not sshing into dcos node using dcos node ssh --master-proxy --leader无法使用 dcos 节点 ssh --master-proxy --leader 进入 dcos 节点
【发布时间】:2017-09-15 00:28:54
【问题描述】:

我是 dcos Mesos 的新手,在本地 Ubuntu 机器上安装了 dc os。

我可以查看 dcos 仪表板。

但我无法使用dcos node ssh --master-proxy --leader SSH 主节点。它说:

没有SSH_AUTH_SOCK 环境变量,这可能意味着您没有运行ssh-agentdcos node ssh --master-proxy/--proxy-ip 依赖 ssh-agent 安全地使用您的私钥在集群中的节点之间跳转。请运行ssh-agent,然后使用ssh-add 添加您的私钥。

作为documentation,./ssh 目录下应该有.pem 文件。但在我的 Ubuntu 机器上,我没有找到该位置的 .pem 文件。

【问题讨论】:

    标签: linux apache-kafka mesos dcos


    【解决方案1】:

    您应该将您的密钥添加到您的 ssh 代理: 这通常由ssh-add keyname 完成,这需要您的ssh-agent 才能运行。

    如果您不归档 pem 文件,这通常意味着您之前没有生成过密钥。使用ssh-keygen 这样做。

    顺便说一句,您引用的是旧版本的文档,我假设您可能正在运行 1.9 或 1.10 集群,所以我会确保使用相应的文档。

    【讨论】:

    • 使用 ssh-keygen 创建的 pem 文件。我看到有两个文件 (1).pem (2) .pem.pub。当我运行 ssh-add 时。它说无法打开与您的身份验证代理的连接。
    • 这可能会有所帮助:unix.stackexchange.com/questions/48863/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-14
    • 2018-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-03
    相关资源
    最近更新 更多