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

**URL:** <https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355>\
**Category:** Platform & Builds\
**Tags:** remote-build, permission, unreal-engine, question\
**Created:** [October 24, 2016, 11:22pm UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355 "2016-10-24T23:22:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![i-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i-design](https://forums.unrealengine.com/u/i-design)\
**Post date:** [October 24, 2016, 11:22pm UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/1 "2016-10-24T23:22:30Z")

</div>

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 🙂 :

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…

---

<div class="post-metadata">

**Author:** ![i-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i-design](https://forums.unrealengine.com/u/i-design)\
**Post date:** [October 29, 2016, 3:54pm UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/2 "2016-10-29T15:54:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41b2dff8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41b2dff8](https://forums.unrealengine.com/u/anonymous_user_41b2dff8)\
**Post date:** [September 11, 2017, 2:59am UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/3 "2017-09-11T02:59:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GizmoMKD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GizmoMKD](https://forums.unrealengine.com/u/GizmoMKD)\
**Post date:** [September 18, 2017, 10:51am UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/4 "2017-09-18T10:51:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patrick58d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@patrick58d](https://forums.unrealengine.com/u/patrick58d)\
**Post date:** [October 31, 2017, 3:27pm UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/5 "2017-10-31T15:27:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Michela](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michela/32/1086652_2.png) [@Michela](https://forums.unrealengine.com/u/Michela)\
**Post date:** [November 1, 2017, 11:44pm UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/6 "2017-11-01T23:44:45Z")

</div>

![218762-screenshot-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/4/044ecec64fd7e4390079e7db4befd01bf2041cfc.png)

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

---

<div class="post-metadata">

**Author:** ![Michela](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michela/32/1086652_2.png) [@Michela](https://forums.unrealengine.com/u/Michela)\
**Post date:** [November 2, 2017, 12:06am UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/7 "2017-11-02T00:06:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DentonJC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DentonJC](https://forums.unrealengine.com/u/DentonJC)\
**Post date:** [March 10, 2018, 3:17am UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/8 "2018-03-10T03:17:32Z")

</div>

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:

 ![233306-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/f/25f29ab240525852088d2a210598b0dc54e3ae08.jpeg)

---

<div class="post-metadata">

**Author:** ![kreshnov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kreshnov](https://forums.unrealengine.com/u/kreshnov)\
**Post date:** [May 20, 2018, 6:36pm UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/9 "2018-05-20T18:36:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![delcasda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@delcasda](https://forums.unrealengine.com/u/delcasda)\
**Post date:** [October 5, 2020, 5:53am UTC](https://forums.unrealengine.com/t/pc-to-imac-remote-build-fails-failed-to-run-init-commands-on-output-permission-denied-publickey-password-keyboard-interactive/374355/10 "2020-10-05T05:53:07Z")

</div>

this solved for me on 4.25
