Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between vscode remote-ssh and remote-tunnel connections

How does VSCODE's Remote SSH compare against Remote Tunnels for development in terms of speed and code protection?

At a glance, it appears that SSH shares the workload (extension) across both machines Remote SSH

While the Remote Tunnel works entirely on the remote/server machine Tunnel

Does Remote Tunnel connect both machines over the internet? How does it impact speed?

Is Remote SSH always preferable when it is possible?

like image 607
Krishna Avatar asked Sep 01 '25 21:09

Krishna


1 Answers

VSCode over ssh directly connects to your Server over ssh.

client -> server:22

VSCode Remote tunnel works with microsofts server between your client and your server like a turn server. (github or ms account required)

client -> ms:443 <- server

  1. Benefit is, you don't need to open ports on your target machine and you have no hassle with NAT or CG-NAT.

  2. Benefit is, you can access the editor also with your webbrowser.

After trying both methods i hold on on ssh.

like image 73
benba Avatar answered Sep 04 '25 01:09

benba