ERROR: Failed to run init commands on remote server macbookpro. Output = Permission denied (publickey,password,keyboard-interactive).

Hello,

We’re struggling with remote building an iOS AR test-project (AR Blueprint Template) on MacBookPro (Mojave) from PC (Win10) with UE 4.20.3 (built from the source, Oculus Version).

We’ve been following this guide: Working on iOS Projects Using a Windows Machine in Unreal Engine | Unreal Engine 5.1 Documentation


SSH Key has been succesfully generated. We also changed SSH Key permissions of the SSH Key located inside the generated Windows directory to USERS group only with full access (after reading about it here in the forum).


.ssh directory permissions on our Mac should be fine with 700.
It containes only:
RemoteToolChainPrivate.key (permissions: 600)
RemoteToolChainPublic.key (permissions: 644)
authorized_keys (permissions: 644)


authorized_keys containes only ssh-rsa for the user login: username(at)servername

We CAN remote login to our Mac (same user login as specified via SSH Key generation) via Windows command prompt and execute terminal commands without any issues.

When we try to build the sample AR Project via Project Launcher, an error occurs after this command:

Doing date +“%s” && sysctl hw.memsize | awk ‘{print $2}’ && sysctl hw.logicalcpu | awk ‘{print $2}’

Execute took 00:00:00.2209741

ERROR: Failed to run init commands on remote server macbookpro. Output = Permission denied (publickey,password,keyboard-interactive).

(see D:\GitHub_Repositories\UnrealEngine-OVR\Engine\Programs\AutomationTool\Saved\Logs\UBT-ARTest_One-IOS-Development.txt for full exception trace)

And here is the corresponding UBT-ARTest_One-IOS-Development.txt for more details.


Any help on this issue would be appreciated.
Thanks! :slight_smile:

We’ve found out there is some kind (???) of issue with ssh running current Mojave 10.14.1 (/etc/ssh/sshd_config v 1.0.3). Mojave 10.14.0 (tested on thirdparty machine: /etc/ssh/sshd_config v 1.0.2) seems not to be affected. After downgrading MacOS back to High Sierra remote building runned as expected with the steps described in this guide: Working on iOS Projects Using a Windows Machine in Unreal Engine | Unreal Engine 5.2 Documentation .

We’ll stick to High Sierra until we’re sure there is an appropriate fix for Mojave 10.14.1 or Mojave gets updated so the issue is not there anymore.