Hello Liang, Yongq,
Thanks for your question.
The VM is not responding to SSH and ping requests. So it is possible the VM is stopped or having network issues. From your screenshot I can see the VM is started. But let's got through the process:
- Go to Azure Portal > Virtual machibnes and click yout VM
- On the Overview page if status is “Running”, your VM is active.
- If your VM is stopped:
- Click Start at the top of the page.
If the Vm is started the start button will be greyed out and you can try to connect:
Also If your VM was restarted, the public IP might have changed, you can copy the IP and try to connect. Ping is disabled by default on azure VM so your ping resultl may not be accourate
Try and connect using:
If you cant then it is confirmed then this may also be a networking issue. So we need to check
- In the left menu, click Networking.
- Look for Inbound Port Rules and confirm your rules.
- Allow SSH (Port 22) from your IP or 0.0.0.0/0.
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola