I have a remote Windows computer that serves as host for Linux (Debian 9) running as guest inside VirtualBox. I have access to the guest Linux (which is part of a VPN) via SSH from my local machine. This way sometimes I need to be able to run Windows commands on the remote host via the remote guest. For example I need to run chkdsk /f E:
for an attached USB drive. Is there a way to start guest VM enabling some sort of communication channel to the Windows host's command prompt?
-
1No, there isn't.– user772515Commented Mar 5, 2018 at 8:14
Add a comment
|
1 Answer
It depends on networking config from host to guest. Assuming you have a bridged network and you know the IP of the host you can use SSH to forward RDP port of the host. This has been covered:
-
Good point, thank you! But is there a way for something more lightweight, text based, like SSH? I don't need the whole Desktop access - only command prompt... Commented Mar 6, 2018 at 11:58
-
1You will need to run an ssh server on the host as well. serverfault.com/questions/8411/… Depending on firewall config you may be able to connect to windows host directly or by forwarding ports in the same way as for RDP.– JB68Commented Mar 7, 2018 at 16:13
-
It's important to note that Windows 10 has an built in SSH server which can be utilized (in Developer mode) with case-sensitive username (second part of the
whoami
output, but in proper case, like IEUser). Evenbash
is available. Commented Mar 8, 2018 at 17:38