Interesting. I know that SSH is strict about the permissions applied, but 
I've never heard of it checking the owner/group of the files.

--
Todd


On Tuesday, August 28, 2018 at 10:00:38 AM UTC-4, Kai Stian Olstad wrote:
>
> On 28.08.2018 15:49, [email protected] <javascript:> wrote: 
> > The public keys are already there, since it's re-using the /home/centos 
> > directory. But it's not using those keys when logging in as the new 
> > user, 
> > the keys that are (theoretically) in the new user's home directory. 
>
> ssh is very strict on permission. ~/.ssh need to have mode 0600, and the 
> private key require mode 0400 or 0600. 
>
> So sharing the same home folder among several user to reuse .ssh wont 
> work since only one user can be the owner of a file/directory at any 
> given time. 
>
> -- 
> Kai Stian Olstad 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4c9e5409-d86e-4305-99c8-43a0c444ae84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to