I’m running Electric Eel RC2 and would like to use VSCode with the SSH remoting mechanism. Unfortunately, when I try to connect, it throws an error about dynamic port forwarding not being available, and that’s a requirement for it to work. Looking at /etc/ssh/sshd_config
, it looks like AllowTcpForwarding
is set to no
. Is that something that is safe to change, or was that locked down to prevent conflicts with Docker/etc.? I’m hesitant to make changes on TrueNAS given how customized it is versus a traditional Debian box.
It’s a security feature. It prevents people from doing what you want to do.
If you want to do it, you can enable it in the ssh service prefs pane, and then you can use vs code.
I seem to have lost ssh functionality with vscode as well. Before migrating to Electric Eel, I had no issues. I already have AllowTCPForwarding
set to on as well as all of the standard ssh config settings. When I ssh from the terminal, I connect just fine. However, if I connect via vscode, I get the following error
Error: Couldn't install vscode server on remote server, install script returned non-zero exit status
It seems that my server downloads the vscode-server files just fine, but cannot execute them when called via the ssh startup. I have also uninstalled the created folder rm -rf .vscode-server
and attempted the ssh connection again and receive the same error.
Has anyone been able to successfully resolve this error?