microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.68k stars 295 forks source link

macOS Sequoia detect error about "Local Network" settings #10441

Open b-long opened 2 weeks ago

b-long commented 2 weeks ago

I noticed the same issue as roblabs from my macOS machine, when using VSCode with Remote SSH and a multipass VM ( https://github.com/canonical/multipass ) having a local IP address, e.g. 192.168.245.4 .

Is there some way that Remote SSH might be able to detect a scenario like this one and give some guidance to a user?

I'd think if you can detect (1) a user is on macOS and (2) connecting to a local IP address, then you might be able to suggest users check for an application to have access to the Local Network in macOS settings.

I'm not entirely sure if it's relevant, but you might find the following reference useful:

I sorted out my issue with the Remote SSH. When I upgraded to macOS Sequoia Beta, it reset (or I didn't notice) that I had to allow the proper access. System Settings -> Privacy & Security -> Allow VSC access to the Local Network. Leaving this here in case someone else gets stuck in the same loop as I did.

image

vs-code-engineering[bot] commented 2 weeks ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

joshspicer commented 2 weeks ago

Good idea, I hit this too when I first updated.

joshspicer commented 2 weeks ago

I updated another machine last night and was luckily prompted, although I don't think this was triggered by Remote - SSH specifically (i'm not sure how this was triggered) Image