It looks like the script that is passed to pwsh.exe
in the SSH command is cut short…is there such a thing as it being too long? It’s cut off part way through dumping the certifcate:
ssh -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no Administrator@192.168.122.66 pwsh.exe
PowerShell 7.2.5
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
PS C:\Users\Administrator> #!/usr/bin/env pwsh
PS C:\Users\Administrator> & {
>>
>> $ErrorActionPreference = "Stop"
>> $FF_CMD_DISABLE_DELAYED_ERROR_LEVEL_EXPANSION="false"
>> $env:FF_CMD_DISABLE_DELAYED_ERROR_LEVEL_EXPANSION=$FF_CMD_DISABLE_DELAYED_ERROR_LEVEL_EXPANSION
>> $FF_NETWORK_PER_BUILD="false"
>> $env:FF_NETWORK_PER_BUILD=$FF_NETWORK_PER_BUILD...
more until we get to dumping the cert
then gets cut off. Since it’s not even sending the full Command-Let (or whatever pwsh speak is for the script) after &
nothing gets executed and it hangs.