We would like to use Visual Studio Remote Debugging (Attach to Process via SSH) for .NET
search cancel

We would like to use Visual Studio Remote Debugging (Attach to Process via SSH) for .NET

book

Article ID: 430333

calendar_today

Updated On:

Products

VMware Tanzu Platform - Cloud Foundry

Issue/Introduction

Currently, establishing an SSH connection from Visual Studio fails with a key exchange error. The cause is an incompatibility between the SSH key exchange algorithms offered by the CF SSH proxy and the SSH client used by Visual Studio (SSH.NET).
Specifically:

The Diego SSH proxy currently appears to offer only Curve25519-based KEX algorithms.


Visual Studio (SSH.NET) does not support these algorithms.

        
      As a result, there is no common key exchange algorithm, and the SSH handshake aborts.

        
      OpenSSH clients work, but Visual Studio does not.

Environment

TAS 10.3.x

Cause

The Diego SSH proxy indeed only support the Curve25519-based KEX algorithms.

The algorithm is also outlined in the below document:

https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/elastic-application-runtime/10-3/eart/deploy-apps-ssh-apps.html

Resolution

There is a tool specifically designed to debug the CF app from Visual studio available at 

https://marketplace.visualstudio.com/items?itemName=TanzuNETExperience.TanzuToolkitForVisualStudio2022

Also description on the how to use the tool is available here