【问题标题】:Chef-Solo user resource not accessing via SSHChef-Solo 用户资源未通过 SSH 访问
【发布时间】:2015-04-08 14:49:32
【问题描述】:

我正在使用 Chef-Solo,在创建新用户后,我无法通过 SSH 连接。

我的资源:

user 'myuser' do
    supports :manage_home => true
    gid "root"
    home '/home/myuser'
    system true
    shell '/bin/bash'
    password 'mypassword'
end

命令行:

$ ssh myuser@myhost
myuser@myhost's password: 
Permission denied, please try again.

但是$ ssh vagrant@myhost 和密码vagrant 可以工作

【问题讨论】:

    标签: ssh vagrant chef-solo


    【解决方案1】:

    您必须为“密码”属性使用密码影子哈希。不是普通密码。

    看看official documentation

    【讨论】:

      猜你喜欢
      • 2014-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-26
      相关资源
      最近更新 更多