So I've run out of ideas on troubleshooting this to resolve the problem and figured this was the next stop. In short I'm running Ubuntu within VirtualBox and I'm trying to SSH to the virtual machine using VirtulBox's natted network feature. To accomplish this Ive made the following configurations within VirtualBox.
NatNetwork - IPv4 prefix:10.0.0.0/24 DHCP:disabled
( Guest assigned statically within network range using 10.0.0.2 )
Port forward rule - protocol:TCP Host:172.0.0.1 port:61022 <--> Guest:10.0.0.2 port:22
Ive verified port 61022 is listening on my Host machine with the loopback address and that openSSH is running and listening on my guest machine using port 22. However when I attempt to SSH to the machine using PuTTY I get the following error.
Network Error: Software cause connection abort
I altered the network type within VirtualBox to bridged and assigned the machine an IP on my local network. Im able to SSH to the machine with that configuration, but not when using NAT or NAT network.
Iv done the following troubleshooting with no success. Updated all software PuTTY and Virtualbox along with the guest and host OS. Reset the windows firewall using netsh advfirewall -r along with the winsock settings and rebooted the system, but I am still getting the error when attempting to SSH. I also ran a packet capture to ensure that the correct port was being used.
No. Time Source Destination Protocol Length Info
1 0.000000 127.0.0.1 127.0.0.1 TCP 56 49786 → 61022 [SYN]
No. Time Source Destination Protocol Length Info
2 0.000064 127.0.0.1 127.0.0.1 TCP 56 61022 → 49786 [SYN, ACK]
No. Time Source Destination Protocol Length Info
3 0.000104 127.0.0.1 127.0.0.1 TCP 44 49786 → 61022 [ACK]
No. Time Source Destination Protocol Length Info
4 0.010466 127.0.0.1 127.0.0.1 TCP 72 49786 → 61022 [PSH, ACK]
No. Time Source Destination Protocol Length Info
5 0.010497 127.0.0.1 127.0.0.1 TCP 44 61022 → 49786 [ACK]
No. Time Source Destination Protocol Length Info
7 18.635780 127.0.0.1 127.0.0.1 TCP 44 61022 → 49786 [RST, ACK]
Any suggestions or troubleshooting ideas to resolve this would be greatly appreciated, Thank you!
172.0.0.1
?