host machine:- windows
VM:- Centos
used bridged Adapter
mobaXterm terminal:-
ssh status:-
hello @Ayman ,
when I started my VM :
ping
command gives the error “name or service not known”ifconfig
not showing the IP addressAfter running nmcli con up enp0s3
:
ping
command runningifconfig
showing the IP addressThen I start MobaXterm:
ping
command is running but 100% packet loss, 0 receixed
try to change the network type of the VM to bridge
.
I am facing the same issue and I do have a network set to bridged adapter already, however, am still unable to use it from MobaXterm, I have tried all the steps mentioned above. Please help as it still says Access Denied
Had the same issue.
My solution that worked:
To permit log in from MobaXTerm:
sudo vi /etc/ssh/sshd_config
PermitRootLogin yes
sudo systemctl restart sshd
The Internet connection wasn’t online, fixed it by:
Extra information:
Check:
“nmcli connection show”
If not on green, do:
“sudo nmcli device connect enp0s3”
sudo systemctl restart NetworkManager
to make it permanent:
sudo nmcli connection edit enp0s3
nmcli> set autoconnect yes
nmcli> save
nmcli> quit
sudo systemctl restart NetworkManager
Check nslookup on 8.8.8.8 and ping google.com
Thanks Maor-Assa, the allow root login section worked for me.