Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Putty to connect to a virtual machine?

Tags:

putty

I am running a virtual machine on Virtual Box

On running ifconfig eth1, I get inet addr: 192.168.56.11 and many more values.

How do I use Putty (ssh) here? I entered 192.168.56.11 on the Host Name and 80 on the Port Number, but Putty can't connect.

I am trying to follow the guidelines from this course:

https://s3-us-west-2.amazonaws.com/cs144-misc/instructions/vm.html

What exactly does Putty do? I don't understand why I need to do this.

like image 343
user2441151 Avatar asked Oct 25 '25 14:10

user2441151


2 Answers

PuTTY will open a "network" between both machines. You'll get a console (like the shell) when you'll be connected. Really useful to administrate remote server from your computer.

Usually, the port is not 80, but 22.

like image 67
Vadorequest Avatar answered Oct 28 '25 05:10

Vadorequest


For oracle vm virtual box:

1)Power of your machine

2)goto Settings -> Network -> Adapter1 -> Enable Network Adapter -> select "Bridge Adapter" in Attache To tab and click 'ok" button

3) open terminal in virtual box and type" ifconfig"

in first paragraph

eth0 Link encap:Ethernet HWaddr 08:00:27:fb:d1:28 inet addr:172.16.2.199

4) Here ip address is "172.16.2.199" using this ip and port 22 ,you can login through putty and winscp also

like image 24
y durga prasad Avatar answered Oct 28 '25 06:10

y durga prasad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!