vscode-remote-release
vscode-remote-release copied to clipboard
[Remote-SSH Bug]: Remote-Ssh refuses to connect to my MacOS laptop no matter what
Is there an existing issue for this bug?
- [X] I have searched the existing issues
Required Troubleshooting Steps
- [X] I have followed these troubleshooting steps
- [X] I have tried both values of the
remote.SSH.useLocalServersetting
Connect Locally
It connects successfully
->
No response
Expected Behavior
SSH to connect to my macOS machine and allow me to remotely work using VS code.
Steps To Reproduce
I have tried enabling and disabling pretty much every setting there is and it doesn't connect no matter what.
Remote-SSH Log
Remote-SSH Log
[19:05:24.478] Log Level: 2
[19:05:24.486] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a226d61634f53227d", attempt 1
[19:05:24.486] "remote.SSH.useLocalServer": false
[19:05:24.487] "remote.SSH.useExecServer": false
[19:05:24.487] "remote.SSH.showLoginTerminal": true
[19:05:24.487] "remote.SSH.remotePlatform": {}
[19:05:24.487] "remote.SSH.path": undefined
[19:05:24.487] "remote.SSH.configFile": C:\Users\angle\.ssh\config
[19:05:24.487] "remote.SSH.useFlock": false
[19:05:24.487] "remote.SSH.lockfilesInTmp": false
[19:05:24.487] "remote.SSH.localServerDownload": auto
[19:05:24.487] "remote.SSH.remoteServerListenOnSocket": false
[19:05:24.487] "remote.SSH.showLoginTerminal": true
[19:05:24.488] "remote.SSH.defaultExtensions": []
[19:05:24.488] "remote.SSH.loglevel": 2
[19:05:24.488] "remote.SSH.enableDynamicForwarding": false
[19:05:24.488] "remote.SSH.enableRemoteCommand": false
[19:05:24.488] "remote.SSH.serverPickPortsFromRange": {}
[19:05:24.488] "remote.SSH.serverInstallPath": {}
[19:05:24.493] VS Code version: 1.89.1
[19:05:24.493] Remote-SSH version: [email protected]
[19:05:24.493] win32 x64
[19:05:24.496] SSH Resolver called for host: macOS
[19:05:24.496] Setting up SSH remote "macOS"
[19:05:24.497] Using commit id "dc96b837cf6bb4af9cd736aa3af08cf8279f7685" and quality "stable" for server
[19:05:24.500] Install and start server if needed
[19:05:25.933] Checking ssh with "C:\Program Files\Eclipse Adoptium\jdk-17.0.11.9-hotspot\bin\ssh.exe -V"
[19:05:25.936] Got error from ssh: spawn C:\Program Files\Eclipse Adoptium\jdk-17.0.11.9-hotspot\bin\ssh.exe ENOENT
[19:05:25.936] Checking ssh with "C:\Program Files\Eclipse Adoptium\jdk-11.0.23.9-hotspot\bin\ssh.exe -V"
[19:05:25.937] Got error from ssh: spawn C:\Program Files\Eclipse Adoptium\jdk-11.0.23.9-hotspot\bin\ssh.exe ENOENT
[19:05:25.937] Checking ssh with "C:\Program Files\Eclipse Adoptium\jdk-21.0.3.9-hotspot\bin\ssh.exe -V"
[19:05:25.938] Got error from ssh: spawn C:\Program Files\Eclipse Adoptium\jdk-21.0.3.9-hotspot\bin\ssh.exe ENOENT
[19:05:25.938] Checking ssh with "C:\Program Files\Eclipse Adoptium\jre-17.0.10.7-hotspot\bin\ssh.exe -V"
[19:05:25.939] Got error from ssh: spawn C:\Program Files\Eclipse Adoptium\jre-17.0.10.7-hotspot\bin\ssh.exe ENOENT
[19:05:25.939] Checking ssh with "C:\Program Files (x86)\VMware\VMware Player\bin\ssh.exe -V"
[19:05:25.940] Got error from ssh: spawn C:\Program Files (x86)\VMware\VMware Player\bin\ssh.exe ENOENT
[19:05:25.940] Checking ssh with "C:\Windows\System32\ssh.exe -V"
[19:05:25.941] Got error from ssh: spawn C:\Windows\System32\ssh.exe ENOENT
[19:05:25.941] Checking ssh with "C:\Windows\ssh.exe -V"
[19:05:25.942] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[19:05:25.942] Checking ssh with "C:\Windows\System32\wbem\ssh.exe -V"
[19:05:25.943] Got error from ssh: spawn C:\Windows\System32\wbem\ssh.exe ENOENT
[19:05:25.943] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[19:05:25.944] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[19:05:25.944] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[19:05:25.969] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
[19:05:25.973] Using SSH config file "C:\Users\angle\.ssh\config"
[19:05:25.973] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -o ClearAllForwardings=true -F "C:\Users\angle\.ssh\config" "macOS" bash
[19:05:25.974] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[19:05:57.977] Resolver error: Error: Connecting with SSH timed out
at g.Timeout (c:\Users\angle\.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.2024050815\out\extension.js:2:499845)
at Timeout._onTimeout (c:\Users\angle\.vscode\extensions\ms-vscode-remote.remote-ssh-0.112.2024050815\out\extension.js:2:619385)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)
[19:05:57.982] ------
Anything else?
ssh config file
cat ~/.ssh/config
Host *
ServerAliveInterval 60
ServerAliveCountMax 10
TCPKeepAlive yes
# macOS
Host macOS
HostName 10.0.0.216
User nick
Port 22
ServerAliveInterval 60
ServerAliveCountMax 10
IdentityFile C:\Users\angle\.ssh\macos_key
```