PC to iMac - Remote Build Fails : Failed to run init commands on . Output = Permission denied (publickey,password,keyboard-interactive)

Hi,

I have been trying to remote build from my PC to my iMac for a couple of weeks now, but have hit a brick wall.

I have followed the guides on answer hub and various posts, and seem to have things configured to the book. I have the certificate and mobile provisions setup correctly and working, rsync is setup, so is Deltacopy, unreal remote build settings and ssh key seems to be working ok, I have setup unreal on the mac and pc from source and have double checked permissions etc… Both the PC and Mac can see each other on the network.

However when I try and package my project for ios, it goes the best part of the way through things successfully until it gets to this part in the log when it complains about permissions. I don’t know what is happening here, and would really appreciate some help in getting to the bottom of this, so if anyone has come across this error before then please put me out of my misery :slight_smile: :

UnrealBuildTool: Failed to run init commands on . Output = Permission denied (publickey,password,keyboard-interactive).
UATHelper: Packaging (iOS): UnrealBuildTool: Failed to initialize a connection to the Remote Server
UATHelper: Packaging (iOS): UnrealBuildTool: Doing xcode-select --print-path
UATHelper: Packaging (iOS): UnrealBuildTool: Execute took 00:00:01.5801991
UATHelper: Packaging (iOS): UnrealBuildTool: Compiling with non-standard Xcode (xcode-select): Permission denied (publickey,password,keyboard-interactive)./
UATHelper: Packaging (iOS): UnrealBuildTool: Doing ls Permission denied (publickey,password,keyboard-interactive)./Platforms/iPhoneOS.platform/Developer/SDKs…

I managed to resolve this issue.

What I needed to do was 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.

What type of users? Just the administrators? What did you define for object names?

what windows you try this? i’m trying on windows 10 but no luck…

Thanks so much for this tip. This did the trick for me, I was stuck for a bit, but once I removed all other groups except “Users” it worked like a charm.

No luck for me on Win10. I removed inheritance so all groups removed bar Users but still getting same error as per screenshot

Ah success! An additional step was required. After changing properties as above, the Project Settings | Found Existing SSH permissions file went blank

(previously autofound key in UnrealBuildTool\SSHKeys\)

Assigned (same) key in the Override existing SSH Permissions file field below and voila, connection made.

To reiterate, you need to open the file’s security tab, and delete ALL the users/names/admins listed there. Then Manually add the user group by clicking Advanced->Add->Select a Principle and manually type in ‘USERS’ here:

Tried setting permissions as suggested and still got the same error.

What eventually worked for me was moving the RemoteToolChainPrivate.key file to a different directory, and then manually choosing it under “Override existing SSH permissions file” in the Project Settings.

In my case I just copied it to the DeltaCopy dir.

this solved for me on 4.25