Warning is given in “Permissions”, and a package fails.
(UnrealBuildTool: Permissions 0660 for ‘/cygdrive/C/Users/MJ/AppData/Roaming/Unreal Engine/UnrealBuildTool/SSHKeys/MJ-no-Mac.local/MJ/RemoteToolChainPrivate.key’ are too open.)
What you need to do is navigate to the RemoteToolChainPrivate.key file in windows explorer > right click > properties> security (tab) > edit (button) > Add the ‘Users’ group and assign ‘Full Control’.
IMPORTANT - Remove all other users and groups assigned to this file, leaving only the ‘Users’ group with full control.
Try packaging again. This worked for me, and got me past this error. Unfortunately I have hit a little Rsync error now, that I am trying to over come, but hopefully you might not have the same problem.
I changed the permission of the .key file to read & write on Administrators, System and my own user.
I also deleted the folders: Saved, .xcworkspace & Intermediate from my project folder.
At least this fixed the issue of the permissions. However, I still have an rsync error
dup() in/out/err failed
UATHelper: Packaging (iOS): UnrealBuildTool: rsync: connection unexpectedly closed (0 bytes received so far) [sender]
Did this help you, do you now experience the same issue as I am?
You will have to search “MacWarning: Unprotected Private Key File” and apply solution to your project file. If you get past this error and experience a new rsync error, please start a new post.
Unfortunately this didn’t work for me. I changed the permissions in the file but the problem persists unchanged.
Am I going mad in thinking that this is something that should be simple/sorted by the engine rather than having us having to learn uber detailed file access security configurations? This whole remote building model is a absolute nightmare… I have the feeling it is not just me around having headaches because of that, am I right?
[Project Settings > iOS > Build] Generate SSH Key and follow instructions for creating the key for the user name and server name you’re using.
[Windows File Explorer] Copy the generated .key file from the default save location (e.g. C:\Users\User\AppData\Roaming/Unreal Engine/UnrealBuildTool/SSHKeys///RemoteToolChainPrivate.key
[Windows File Explorer] Paste the .key file in a local and not shared directory (e.g. C:/RemoteToolChainPrivate.key)
[Project Settings > iOS > Build] Use the Override existing SSH permissions and set the .key to the new location (e.g. C:/Remote…)
If errors of denied access occur, make sure that the owner of the directory on the Mac rsync can’t access is the user you’re using
It’s an annoying problem, so please update how it goes and if you have additional problems with it.