This is something I've been trying to figure out for the past couple of weeks. Trying to connect to my TrueNAS home server via VSCode remote just would not work some reason.
- Download the SSH remote extension in VS Code
- SSH into your TrueNAS server
- In the file
/etc/ssh/sshd_config
change the lineAllowTcpForwarding no
toAllowTcpForwarding yes
- Open the
Remote Explorer
side panel in VS Code and connect to your TrueNAS server - If prompted, enter your password or ssh key passphrase
- You should be able to connect without a problem!