Home » Questions » Computers [ Ask a new question ]

SSH from host machine Win7 to guest Fedora Machine in VirtualBox

SSH from host machine Win7 to guest Fedora Machine in VirtualBox

I'm using VirtualBox on Windows 7 to run Fedora 7. I seem to have my SSH on, as /sbin/service sshd status tells me. When I do an /sbin/ifconfig, I get this:

Asked by: Guest | Views: 298
Total answers/comments: 2
Guest [Entry]

"Found the solution. The manual contains it all. Thanks Bender.

VBoxManage setextradata ""Linux Guest""
""VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol"" TCP
VBoxManage setextradata ""Linux Guest""
""VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort"" 22
VBoxManage setextradata ""Linux Guest""
""VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort"" 2222"
Guest [Entry]

"You seem to have a simple networking issue.
The IP Networks for your two machines are different.
Try changing your hosted Fedora IP address to 192.168.56.2 and mask 255.255.255.0.

To confirm this, try to ping from one machine to the other without the changes I suggest above. They should be unreachable both-ways."