Chef Development Kit Version: 0.17.17
chef-client version: 12.13.37
delivery version: master (f68e5c5804cd7d8a76c69b926fbb261e1070751b)
berks version: 4.3.5
kitchen version: 1.11.1
Platform Details
Testing in Test Kitchen running bento/centos-6.7
Scenario:
Login via SSH using public/private keys.
Steps to Reproduce:
Follow the instructions in the README file to create a user out of a databag. Include public SSH key. Assign group_id 1138 to the myuser's group (No real reason, I was just testing in case this was the issue).
Note: I have no cookbooks that install nor configure sshd. But I manually changed PubkeyAuthentication to yes and restarted sshd to test but it didn't work.
Expected Result:
Typing ssh myuser@serveripaddress would let me log in right after provisioning.
Actual Result:
Asks for password.
Notes:
I manually checked .ssh/ and .ssh/authorized_keys. Both file's owner and group are myuser and root. Permission of .ssh is drwx------, permission of authorized_keys is rw------.
Cookbook version
depends 'users', '~> 4.0'
Chef-client version
Chef Development Kit Version: 0.17.17 chef-client version: 12.13.37 delivery version: master (f68e5c5804cd7d8a76c69b926fbb261e1070751b) berks version: 4.3.5 kitchen version: 1.11.1
Platform Details
Testing in Test Kitchen running
bento/centos-6.7
Scenario:
Login via SSH using public/private keys.
Steps to Reproduce:
Follow the instructions in the README file to create a user out of a databag. Include public SSH key. Assign
group_id 1138
to themyuser
's group (No real reason, I was just testing in case this was the issue).Note: I have no cookbooks that install nor configure sshd. But I manually changed
PubkeyAuthentication
toyes
and restartedsshd
to test but it didn't work.Expected Result:
Typing
ssh myuser@serveripaddress
would let me log in right after provisioning.Actual Result:
Asks for password.
Notes: I manually checked
.ssh/
and.ssh/authorized_keys
. Both file'sowner
andgroup
aremyuser
androot
. Permission of.ssh
isdrwx------
, permission ofauthorized_keys
isrw------
.I'm using selinux on permissive.