Wednesday, May 15, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1343  / 2 Years ago, thu, july 14, 2022, 1:14:32

I have installed Ubuntu Server on a virtual machine in VirtualBox which runs on Windows 7.
How can I connect through ssh to that virtual machine?



I go and type 'ifconfig', and i get this address "10.0.2.15". But when I try ssh 10.0.2.15 it can't establish the connection.


More From » 12.04

 Answers
5

The easiest way is to set up the network interface of the virtual machine to "Bridged mode" in virtualbox.



You do that by selecting the virtual machine (in VB) then go to settings > network, and change the attached to dropdown from NAT to bridged



After that, you virtual machine should get an IP address of your local network (similar tot he one of the host pc) and you should be able to ssh it with that IP.


[#34377] Saturday, July 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
piscen

Total Points: 134
Total Questions: 117
Total Answers: 133

Location: Indonesia
Member since Wed, Jul 7, 2021
3 Years ago
piscen questions
Sun, Oct 23, 22, 16:06, 2 Years ago
Wed, May 17, 23, 01:44, 1 Year ago
Thu, Nov 24, 22, 19:09, 2 Years ago
Mon, Mar 6, 23, 02:42, 1 Year ago
;