5
1
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:
eth0 Link encap:Ethernet HWaddr 08:00:27:CF:5A:0B inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
I do an ssh 10.0.2.15
from inside Fedora, and connect back to the guest machine.
When I do an ipconfig
on my Windows machine, I get this information:
Ethernet adapter VirtualBox Host-Only Network: Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::b42c:a852:a0e8:1636%19 IPv4 Address. . . . . . . . . . . : 192.168.56.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0
When I now use PuTTY, to connect to 192.168.56.1, it says connection refused. Connection to 10.0.2.15 times out.
SSH service is running. I have disabled SELinux. Also, I have allowed ssh as a trusted service in system-configure-securitylevel. I have tried to switch the firewall completely, but it turns back on automatically.
2Did you read VirtualBox manual? What's your virtual machine's network adapter mode? If it's NAT, you need to set up port forwarding. – Bender – 2009-11-15T22:48:33.873
If he's trying to ssh into a vm on his own box he doesn't need port forwarding at all. – John T – 2009-11-15T23:24:29.593
John, if you disagree I suggest you too read vbox manual. – Bender – 2009-11-16T05:17:51.940