Trying to add an AHP host via SSH never completes.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 64/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- powershell
- Domain
- desktop-dev, networking
Research direction
Start at the github_app::remote_host::ssh::install entry point and reproduce the Windows-to-Windows setup using the logged ssh.exe command and PowerShell 7. Trace whether the archive sent through standard input is closed, then verify that adding the AHP host completes without a stuck ssh.exe process or loading spinner.
Written by the indexing model from the issue text.
Description
Trying to add an AHP host via SSH never completes. Windows on both client and server.
The last thing I see in the log is "github_app::remote_host::ssh::install: compatible copilotd not found; installing pinned version destination="meron-1" version="0.7.3"" and after that nothing happens. Some blank ssh.exe windows pop open and close over a few seconds until one finally stays open forever. Nothing else ever happens to complete adding the AHP host, it just keeps spinning the loading spinner and the ssh.exe window remains open.
Regular "ssh meron-1" works fine. Remote shell is powershell 7, in case it matters.
The ssh.exe that remains open seemingly forever has the following command line:
"C:\WINDOWS\System32\OpenSSH\ssh.exe" -o BatchMode=yes -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -- meron-1 "powershell -NoProfile -NonInteractive -EncodedCommand JABFAHIAcgBvAHIAQQBjAHQAaQBvAG4AUAByAGUAZgBlAHIAZQBuAGMAZQA9ACcAUwB0AG8AcAAnADsAIAAkAHIAbwBvAHQAPQBKAG8AaQBuAC0AUABhAHQAaAAgACQASABPAE0ARQAgACcALgBjAG8AcABpAGwAbwB0AGQAXABiAGkAbgAnADsAIAAkAHoAaQBwAD0ASgBvAGkAbgAtAFAAYQB0AGgAIAAkAGUAbgB2ADoAVABFAE0AUAAgACgAJwBjAG8AcABpAGwAbwB0AGQALQAnACsAWwBnAHUAaQBkAF0AOgA6AE4AZQB3AEcAdQBpAGQAKAApACsAJwAuAHoAaQBwACcAKQA7ACAAJAB0AG0AcAA9AEoAbwBpAG4ALQBQAGEAdABoACAAJABlAG4AdgA6AFQARQBNAFAAIAAoACcAYwB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vAHQAZAAuAGUAeABlACcAIAB9ADsAIAAkAHMAdABhAGcAZQBkAD0ASgBvAGkAbgAtAFAAYQB0AGgAIAAkAHIAbwBvAHQAIAAnAGMAbwBwAGkAbABvAHQAZAAuAGUAeABlAC4AbgBlAHcAJwA7ACAAQwBvAHAAeQAtAEkAdABlAG0AIAAkAGUAeABlAC4ARgB1AGwAbABOAGEAbQBlACAAJABzAHQAYQBnAGUAZAAgAC0ARgBvAHIAYwBlADsAIABNAG8AdgBlAC0ASQB0AGUAbQAgACQAcwB0AGEAZwBlAGQAIAAoAEoAbwBpAG4ALQBQAGEAdABoACAAJAByAG8AbwB0ACAAJwBjAG8AcABpAGwAbwB0AGQALgBlAHgAZQAnACkAIAAtAEYAbwByAGMAZQAgAH0AIABmAGkAbgBhAGwAbAB5ACAAewAgAFIAZQBtAG8AdgBlAC0ASQB0AGUAbQAgACQAegBpAHAALAAkAHQAbQBwACAALQBSAGUAYwB1AHIAcwBlACAALQBGAG8AcgBjAGUAIAAtAEUAcgByAG8AcgBBAGMAdABpAG8AbgAgAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAIAB9AA=="
Decoded, that blob seems to be: $ErrorActionPreference='Stop'; $root=Join-Path $HOME '.copilotd\bin'; $zip=Join-Path $env:TEMP ('copilotd-'+[guid]::NewGuid()+'.zip'); $tmp=Join-Path $env:TEMP ('copilotd-'+[guid]::NewGuid()); try { $input=[Console]::OpenStandardInput(); $file=[IO.File]::Create($zip); $input.CopyTo($file); $file.Dispose(); New-Item -ItemType Directory -Force $tmp,$root | Out-Null; Expand-Archive -LiteralPath $zip -DestinationPath $tmp -Force; $exe=Get-ChildItem $tmp -Filter copilotd.exe -Recurse | Select-Object -First 1; if (-not $exe) { throw 'release archive did not contain copilotd.exe' }; $staged=Join-Path $root 'copilotd.exe.new'; Copy-Item $exe.FullName $staged -Force; Move-Item $staged (Join-Path $root 'copilotd.exe') -Force } finally { Remove-Item $zip,$tmp -Recurse -Force -ErrorAction SilentlyContinue }
So it reads the zip file from stdin. Presumably the failure for anything to happen is a side-effect of the stdin never closing. I wonder if this may be related to the SSH shell being PowerShell 7 instead of something more oldschool like (Disproven)cmd.exe?
| Field | Value |
|---|---|
| App version | 1.1.20 |
| OS | Windows 10.0.26310 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Day 1 |
- Dominant language
- No language data
- Stars
- 2.1k
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/app
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Similar issues
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
Help-Wanted Package-Request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/winget-pkgs#438682 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
bug popups
Difficulty 2/5 1-3 hours Newbie friendliness 76/100