Do you have samples for VisualStudio Debugging?

I want to use Visual Studio to debug with Okteto with a .NET application if possible

Before Visual Studio 17.10 the allow to use RSA keys for SSH connections. But from that version on, they only allow EC → Connect to your target Linux system in Visual Studio | Microsoft Learn

Okteto was using RSA and wasn’t compatible with new versions. But since Okteto Chart 1.24.0 and Okteto CLI 2.31.0 we added the option.

Here is an example on how to use it: GitHub - okteto-community/aspnetcore-visualstudio-starter: Starter guide and app for ASP.NET Core with Visual Studio