Help Needed: Connect to FreeBSD 14.3 via VSCode Remote SSH

Hi all,

I'm trying to connect to a FreeBSD 14.3 virtual machine from my Mac using Visual Studio Code with the Remote - SSH extension, but I'm running into issues.

Here’s what I’ve done so far:
  • Set up FreeBSD 14.3 as a VM.
  • Verified that the VM is up and reachable (I can ping it and even SSH into it manually via terminal).
  • Installed openssh-portable since the default sshd was giving a segmentation fault.
  • Generated the necessary host keys using ssh-keygen -A.
  • Configured /etc/ssh/sshd_config appropriately and tried starting sshd, but had to use /usr/local/sbin/sshd from the portable version.
  • Verified port 22 is listening using sockstat.

When I try to connect from VSCode, I get various errors like:
  • “The remote host may not meet VS Code's server prereqs”
  • “Could not establish connection”
  • Sometimes it just times out or refuses connection.

Has anyone successfully connected to FreeBSD 14.3 via VSCode Remote - SSH? If so, could you guide me through the exact steps and dependencies needed?


Any help or advice would be greatly appreciated!

Followed this: link

Thanks in advance.
 
Have you tried another SSH VSCode extension? I see here many extensions on my system.

With the Microsoft Remote SSH extension I also can't connect. But with another error (can't parse the server port).
 
SSH FS worked for connecting but none of the editing or tooling actually happens on FreeBSD with it. I want VSCode's Remote Development environment working so that I can actually do everything on FreeBSD
 
Back
Top