Visual Studio Code: How to do SSH within SSHed session.

Sudhir Shinde 1 Reputation point
2022-02-25T05:36:05.813+00:00
  1. I have two Linux VM, say VM1 and VM2 and Windows Machine on which VSCode installed.
  2. VM1 is only accessible from the window machine.
  3. VM2 is only accessible from VM1.
  4. VM2 is not accessible from my windows machine, hence cannot do ssh to it.
  5. Using VScode, I can do ssh to VM1.

Is there any way to do ssh to VM2 from VM1's SSH session in VSCode?

System Center Virtual Machine Manager
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,707 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,066 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.