Hallo,
und zwar bin ich neu was Virtual Box angeht. Ich besitze einen Dedicated Windows Server 2019 Root mit einer öffentlichen IP. Nun möchte ich per Virtual Box ein Linux System aufsetzen dass dann ebenfalls per ssh extern erreichbar ist. Welche Einstellungen muss ich den nun vornehmen?
Ich habe nun im Bereich "Netzwerk" folgendes stehen:
wenn ich nun unter Debian den Befehlt "curl ifconfig.io" ausführe erhalte ich die Öffentliche IP von dem Windows Root, nur wie kann ich den nun konfigurieren dass das Debian System eine eigene IP bekommt oder irgendwie seperat erreichbar ist über ein SSH Programm wie Putty von einem externen PC?
Hoffe es wurde verstanden was meine Ausgangssituation ist und evtl hat ja einer eine Idee wie ich das lösen kann.
Vielen Dank im voraus.
Mit freundlichen Grüßen
Debian System auf Windows Root
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: Debian System auf Windows Root
If the host is directly connected to your public internet without going through a network router, then the setup you have shown in the screenshot, using NAT for the VM, should be good. See Virtualbox Networks: In Pictures: NAT
In your host's firewall, open the port you intend to let the internet SSH client access the VM. Then in the VM's NAT connection shown in the screenshot, open "Port-WeiterLeitung" (port forwarding) and enter the port number you opened in the host firewall in the "Host Port", and the port the VM OS requires for SSH in the "Guest Port". Nothing else needs to be entered.
The port that the SSH client needs to use can be different than the standard port for SSH. The VM OS can remain on port 22 for SSH (this number 22 would be in the Virtualbox NAT port forward setting "Guest Port"). You can pick another port number for the internet SSH client, like 8022, etc. This number goes in the Virtualbox NAT port forward setting "Host Port", and the host firewall, and any other firewalls between the host and the internet.
Using the example client port of 8022, your host can SSH into the VM with "localhost:8022" or "127.0.0.1:8022". The internet client would SSH using "public.ip.add.ress:8022" The traffic comes from the internet, through the host firewall and to the Virtualbox NAT on port 8022. Virtualbox NAT translates to port 22 and send the traffic into the VM.
In your host's firewall, open the port you intend to let the internet SSH client access the VM. Then in the VM's NAT connection shown in the screenshot, open "Port-WeiterLeitung" (port forwarding) and enter the port number you opened in the host firewall in the "Host Port", and the port the VM OS requires for SSH in the "Guest Port". Nothing else needs to be entered.
The port that the SSH client needs to use can be different than the standard port for SSH. The VM OS can remain on port 22 for SSH (this number 22 would be in the Virtualbox NAT port forward setting "Guest Port"). You can pick another port number for the internet SSH client, like 8022, etc. This number goes in the Virtualbox NAT port forward setting "Host Port", and the host firewall, and any other firewalls between the host and the internet.
Using the example client port of 8022, your host can SSH into the VM with "localhost:8022" or "127.0.0.1:8022". The internet client would SSH using "public.ip.add.ress:8022" The traffic comes from the internet, through the host firewall and to the Virtualbox NAT on port 8022. Virtualbox NAT translates to port 22 and send the traffic into the VM.
Re: Debian System auf Windows Root
Thank u this works for me, Thanks a lot
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: Debian System auf Windows Root
Glad to help!