I have SSH configured on my Windows 10 work PC. If I SSH into it from my home Windows 10 laptop using PowerShell, it works as expected (launches on Windows). But if I try the same thing in Antigravity using the Remote-SSH: Connect to SSH Host, it opens in WSL.
So far, I’ve tried:
- Adding port 2222 to ssl config on the PC and shutting down WSL (it forces WSL open)
- Adding
"remote.SSH.remotePlatform": { "PC": "windows" }(did nothing) - Adding
RemoteCommand powershell.exeandRequestTTY yesto Antigravity SSH config (nope) - Removing WSL from windows features list (it now does not connect)
- Changing
C:\Users\atc\AppData\Local\Programs\Antigravity\bin\antigravity’sWSL_EXT_ID="ms-vscode-remote.remote-wsl"toWSL_EXT_ID="google.antigravity-remote-wsland copying scripts (still not working).
The logs always, no matter what changes I made, included:
2026-01-21 18:50:10.208 [info] [Info - 12:50:10.192] Bash script:
# Server installation script
...
After disabling WSL, it always shows:
...
2026-01-21 18:50:17.586 [info] [Error - 12:50:17.585] SSH server closed unexpectedly.
Error code: 1
PowerShell has consistently sent me to Windows regardless of any of the changes.
How can I make it open in Windows?