0

Is it possible that I can use multiple SSH connections inside Visual Studio Code? I have created 8 different SSH Targets. I think a good solution could be that inside the same window I only have to switch the terminal from one target to the next target.

Also, I have created a workspace. code-workspace file in which I have opened different network drives together as one workspace. The point is if I open one SSH target it would be opened inside a new window and if not, the workspace gets closed. Is it possible to combine both solutions?

Thanks in advance and kind regards

Jack Morgan
  • 317
  • 1
  • 14
Micha93
  • 628
  • 1
  • 9
  • 22

1 Answers1

0

The remote SSH capability added to VSCode (and documented here) is only valid for one remote SSH connection at a time (seen in the lower-left corner)

https://code.visualstudio.com/assets/docs/remote/ssh/ssh-statusbar.png

If you want to develop locally, but still have multiple terminals, each one with their own SSH connection, you would need to:

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Is it possible to use VSCode to do remote SSH where the destination IP & PORT are dynamic. I have a requirement to connect to remote serverB via serverA. When I login to serverA, I am redirected to serverB based on sshd_configs on serverA. when I do ssh via cmd line it goes fine to serverB. But VSCode is not able to do that. Any ideas? – Arun Chandramouli Apr 20 '22 at 08:01
  • @ArunChandramouli I don't know if this is possible. I will follow your issue (https://github.com/microsoft/vscode-remote-release/issues/6634) – VonC Apr 20 '22 at 09:18