Hello, I have installed Virtual box and used centors image “CentOS 8.2.2004 (64bit)”.
My SSH is not working, I am getting warning as “Network error: Connection timed out”.
my settings are:
attached to bridged network
promiscuous mode = allow all
Active(running) status I can see when checked ssh status in VM using command/ systemctl status sshd
this times it works. I have used $ sudo pkill dhclient and $ sudo dhclient.
I am able to ping google from my VM however I am unable to ssh from Mobaxtream.
I also like to mention I am not able to ping VM IP from my local machine which is 192.168.122.1
Hi KodeKloud, I am trying to fix this issue for the last 3 days, explored many videos on youtube and the web, and today one worked for me.
I have used NAT and added Port forwarding rule(Host IP: 127.0.0.1/2222 and Guest IP: 192.168.122.1/22).
then I have added 127.0.0.1 IP to the Mobaxtream/putty and it working.
I understand that putty first reaches 127.0.0.1 and then port is forwarded to the VM ip.
But my question is, why I can directly reach VM as I saw in your videos? where I did mistake.
Hi,
A solution that works for me (Windows 10, VM VirtualBox 6.16, CentosOS 8 (64bit) ):
VM attached to bridged network
promiscuous mode = deny (but work for ‘allow all’ also)
In terminal type:
nmcli con up ‘enp0s3’
After that find your IP address for enp0s3 with ifconfig and SSH to that IP…
I am facing issues in getting ip address for bridged network
my virtual box not coming in full screen even after trying insert guest addition CD image. very hard to click right control every time . can someone help