Hello 守山 李
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
This error message indicates that your computer is unable to reach the target server. There could be several reasons for this, such as incorrect IP address, network connectivity issues, or firewall restrictions.
To troubleshoot this issue, you can try the following steps:
-From this link (https://ping.eu/port-chk/) please check if your VM Public IP is accessible on port 22. If this is closed, which means the NSG is not set correctly.
-Also, check if there are any firewall restrictions that are blocking your connection. You can try disabling your firewall temporarily and see if you are able to connect to the server. If you are able to connect after disabling the firewall, you need to configure your firewall to allow SSH traffic on port 22.
Hope this helps.