【问题标题】:How to add the ssh key of non-root user during provisioning virtual guest in SoftLayer如何在 SoftLayer 中配置虚拟来宾期间添加非 root 用户的 ssh 密钥
【发布时间】:2018-01-03 01:04:11
【问题描述】:

由于安全问题,我想在配置时向虚拟访客添加普通用户(例如“vcap”)的 ssh 密钥。

我只是用来将虚拟访客模板中的 sshkeys 添加为“SshKeys”属性。但它只能作为“根”工作。我虽然 ssh 密钥被赋予'root'。这对我不利,因为我禁用了图像中的 root ssh 登录。 SoftLayer 是否支持在配置期间添加非 root 用户 sshkey?

【问题讨论】:

    标签: ssh ibm-cloud-infrastructure


    【解决方案1】:

    目前这是不可能的,当设置发生时,它将为主要用户安装 Ssh 密钥,因此是“root”用户。

    更多信息请见下文:

    https://knowledgelayer.softlayer.com/faqs/585

    https://knowledgelayer.softlayer.com/topic/ssh-keys

    https://knowledgelayer.softlayer.com/learning/how-do-i-permit-specific-users-ssh-access

    【讨论】:

    • 还有一个问题。我调查了虚拟访客设置后的一些操作方法:provisionScriptsVirtual_Guest_SupplementalCreateObjectOptions.PostInstallScriptUriexecuteRemoteScript。这些方法可以在供应完成时间上起作用吗?我想我可以用它来设置一个普通用户的 ssh 密钥,这个用户被添加到图像构建阶段。你有什么建议写后记吗?我想将脚本添加到元数据服务器。
    • 我可以准备一个 ssh 密钥对以在 softlayer 门户中使用吗?
    猜你喜欢
    • 2017-10-12
    • 1970-01-01
    • 2016-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-29
    • 1970-01-01
    • 2021-07-25
    相关资源
    最近更新 更多