Original theory:
AllowTcpForwarding
andGatewayPorts
is an important parameter in SSH configuration.AllowTcpForwarding
Controls whether TCP forwarding is allowed through SSH tunnels, andGatewayPorts
Controls whether remote hosts are allowed to access other hosts through the gateway. If these parameters are disabled, VSCode's remote development feature may not work properly. Restarting the SSH service ensures that the new configuration takes effect.