Hi Pravin kumar,
Thank you for your patience while we are reviewing your query!
This issue appears to be related to your VS Code Remote SSH extension and how it interacts with your VM's SSH server.
The below tutorial walks you through creating and connecting to a virtual machine (VM) on Azure using the Visual Studio Code Remote - SSH extension. https://code.visualstudio.com/docs/remote/ssh-tutorial
Can you please confirm if you have followed the steps mentioned. And also, the below article covers troubleshooting tips and tricks for each of the Visual Studio Code Remote Development extensions. See the SSH, Containers, and WSL articles for details on setting up and working with each specific extension.
Also, if the issue still persists, please provide me with the snapshot of the error message you are getting or confirm if the Symptoms include repeatedly seeing the dialog Disconnected. Attempting to reconnect.... Please feel free to tag me in the comments.
Hope this helps!If the comment is helpful, please "upvote" or tag me in the comments.