authorized_files is created at the user directory but owner is root
|Assigned To:||Daniel Lobato Garcia|
|Target version:||Foreman - Team Daniel - Iteration 9|
|Difficulty:||Pull request:||https://github.com/theforeman/foreman/pull/3167, https://github.com/theforeman/foreman_remote_execution/pull/151|
|Velocity based estimate||-|
As noticed by ewoud on https://github.com/theforeman/community-templates/pull/233 , during provision the authorized_keys file is created under the 'ssh_user' directory but the user may not be able to read or write it after that, since it was created by root.
Fix is simple, just chown the directory and file as 'ssh_user'.