Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Remote-SSH Bug]: Remote-Ssh refuses to connect to my MacOS laptop no matter what #9873

Open
3 tasks done
peppapig450 opened this issue May 11, 2024 · 0 comments
Open
3 tasks done
Assignees
Labels
ssh Issue in vscode-remote SSH

Comments

@peppapig450
Copy link

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting

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: remote-ssh@0.112.2024050815
[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?

image

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
    ```
@peppapig450 peppapig450 added the ssh Issue in vscode-remote SSH label May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants