PowerShell / PowerShell/Win32-OpenSSH
VSCode Remote between two AAD-joined Windows PCs is not very seamless
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
"OpenSSH for Windows" version
OpenSSH_for_Windows_8.1p1
Server OperatingSystem
Windows 10 20H2
Client OperatingSystem
Windows 10 2004 Insider Preview (20214.1001)
What is failing
My scenario is using VSCode Remote to connect between my laptop (client) and PC (server) so that I can use the full power of the PC to build, etc. while running the VSCode editor locally on the laptop. Both PCs are running Windows and are AAD-joined. There are a few "speed-bumps" that make configuring this difficult and clunky:
- I can only authenticate with keyboard-interactive - neither publickey nor gssapi-with-mic work properly, which means I am typing my password repeatedly. (This may be separately tracked by #1543.)
- Once I'm logged in, VSCode Remote is able to get up and running, but
gitcommands fail to find my credentials since the shell is running in session 0 (non-interactive). (See also #996 which is related.) My hope is that once GSSAPI authentication works in this scenario, the resulting session will have full access to my credentials and resolve this, but I'm not sure whether it will actually work that way... - The remote shell is always running with elevated privileges, which feels unsafe; if I were doing my development workflow locally, I wouldn't need to be elevated and I'd prefer to be able to connect as a non-elevated user for VSCode Remote purposes.
As for the specifics of attempting to log in with GSSAPI, I enabled this on the server by adding GSSAuthentication yes to sshd_config and restarting the service. Then I connected from the client using ssh -K, but this just fails with GSS_S_FAILURE in the verbose logs, and moves on to interactive keyboard login.
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.
Research direction
Begin with the reported Windows AAD-joined client/server setup, sshd_config's GSSAuthentication setting, and verbose output from ssh -K; compare keyboard-interactive, publickey, and GSSAPI behavior. Treat the three reported outcomes—non-repeated authentication, git credential availability in the session, and a non-elevated VSCode Remote shell—as acceptance criteria, while checking related issues #1543 and #996.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, vscode
- Domain
- authentication, developer-experience, operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100