Hi OĞUZHAN YILDIRIM,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
I can suggest you with some troubleshooting steps
- Check if your Linux VM is running and connected to the network. You can do this by pinging the VM’s IP address from your Windows computer. If the ping fails, it might mean the VM is turned off or not properly connected to the network.
- Verify that the SSH service is active on the Linux VM. Log into the VM and run sudo systemctl status ssh to check if SSH is running. If it's not, start it by running sudo systemctl start ssh.
- Check if your Linux VM’s firewall is blocking SSH connections. Temporarily disable the firewall and try connecting again. If the connection works after disabling the firewall, you'll need to configure it to allow SSH traffic.
- Ensure your router isn’t blocking SSH on port 22. Some routers may block certain ports, so you may need to adjust the settings to allow SSH traffic through port 22.
Additionally, I would suggest that you go through the documentation, as it might be helpful.
Can't connect to Azure Linux VM through network
Connect to a Linux VM
If you have any further queries, do let us know.
If the answer is helpful, please click "Accept Answer" and "Upvote it."