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:
When I try to connect from VSCode, I get various errors like:
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.
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.