@Rafiq Sulaiman
I understand you are attempting to connect to a node in your AKS cluster and running into the above error. Please correct me if I am misunderstanding the issue.
You can securely authenticate against AKS Linux and Windows nodes using SSH. For security reasons, the AKS nodes aren't exposed to the internet. To connect to the AKS nodes, you use kubectl debug or the private IP address. This article walks you through the necessary steps to enable your node for connection.
Hope this helps. Please let me know if this works for you or if you are still facing issues.
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.