首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >juju引导颁发公钥

juju引导颁发公钥
EN

Ask Ubuntu用户
提问于 2016-06-03 11:06:29
回答 1查看 273关注 0票数 0

我设置了一个节点并在其上安装了juju。操作系统是一个,所以必须使用:

ubuntu用户名和私钥。

但是当我运行juju引导程序时:我有这样的错误:

代码语言:javascript
运行
复制
ERROR initializing ubuntu user: subprocess encountered error code 255 (Permission denied (publickey).)

我的environments.yaml文件:

代码语言:javascript
运行
复制
default: manual
environments:
  manual:
     type: manual
     bootstrap-host: deploy.example.com
     bootstrap-user: training

有什么想法吗?

EN

回答 1

Ask Ubuntu用户

发布于 2016-06-08 02:18:35

你能和另一台机器一样进入另一台机器吗?

代码语言:javascript
运行
复制
ssh deploy.example.com -l ubuntu  

如果这不起作用,问题就在您的安全设置中。

我的environments.yaml:

代码语言:javascript
运行
复制
manual:
    type: manual
    # bootstrap-host holds the host name of the machine where the
    # bootstrap machine agent will be started.
    bootstrap-host: somehost.example.com

    # bootstrap-user specifies the user to authenticate as when
    # connecting to the bootstrap machine. It defaults to
    # the current user.
    # bootstrap-user: joebloggs

这告诉我,引导用户是谁,你使用登录。在您的例子中,您需要以“培训”而不是“ubuntu”的身份登录。所以试试

代码语言:javascript
运行
复制
ssh deploy.example.com -l training  

或者,更重要的是,尝试将您的environments.yaml更改为

代码语言:javascript
运行
复制
bootstrap-user: ubuntu
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/781288

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档