Can't connect to gadi compute node from vscode

Today I’m having problems with vscode not being able to connect to compute nodes. Is anyone else having the same issue or is it just me? I get get “Could not establish connection”. In the output logs I get

[13:48:01.430] ERROR: TCP port forwarding appears to be disabled on the remote host. Ensure that the sshd_config has `AllowTcpForwarding yes`. Contact your system administrator if needed.
[13:48:01.478] Failed to set up socket for dynamic port forward to remote port 35577: Socket closed. TCP port forwarding may be disabled, or the remote server may have crashed. See the VS Code Server log above for details.
[13:48:01.479] stderr> channel 4: open failed: administratively prohibited: open failed

But I still can connect via SSH on the terminal.

Hey @eliocamp , so interestingly I also get those errors when trying to connect to a compute node through VS Code. But when I try the same port-forwarding through my terminal it works fine, so I think this may be a VS Code issue.

Hmm ok I now think that someone has blocked TCP port forwarding in /etc/ssh/sshd_config either on purpose or by accident. Considering the maintenance was only last week I wonder if something was done then. We’ll need an NCI staff to comment on this.

I’ve sent a ticket to the helpdesk. Will report when they come back to me.

If SSH tunnels are blocked you can also try starting an ARE session, download the vscode CLI and run code tunnel, which uses a HTTPS tunnel (ARE session is required for network access)

I think the ARE session wouldn’t work either because only the ARE application has internet access. If you SSH into the node, you can’t access the internet from the terminal.

Anyway, now it’s working. They must’ve fixed the issue on gadi’s side.

2 Likes