Remote debugging .net core 2.0 console application on top of ssh

I am creating a .net core 2.0 console application on Windows 10, but I want to debug it on a remote Linux server running debian 9.

I found this article:

https://blogs.msdn.microsoft.com/devops/2017/01/26/debugging-net-core-on-unix-over-ssh/

but where I am stuck you choose an SSH connection. My remote server has authentication, and if I enter user@ip :port , it will not find anything.

enter image description here

I found some mention of how to use SSH tunneling, but since there is no dotnet process on the server (it is installed, but I don’t have any listening service that I see) I'm not sure which port I have in mind tunneling or even the direction of its tunneling.

What do I need to do so that my SSH connection is visible in the debugger?

+7
visual-studio-2017 .net-core remote-debugging
source share
1 answer

I just tried this and I found that the Find button .. also does nothing.

First, you enable SSH connections on the Linux host (in my Ubuntu case, I had to run sudo ufw allow ssh ). Check everything by opening cmd on Windows and making ssh user@host .

Then, in Visual Studio, in the SSH connection to the process window, make sure that you click "update" and check the box "show processes from all users." You should see the "dotnet" process.

enter image description here

enter image description here

EDIT : at some point you will need to specify the password of the remote host. A dialog box is shown here when I changed the password on the remote host and then tried to debug.

enter image description here

+3
source share

All Articles