How can I programmatically connect to a remote database server that requires an SSH tunnel?

I am working on ETL using C #, which retrieves data from a remote MySQL database, which requires an SSH tunnel connection. Currently, I work so that I first create my SSH tunnel manually using PuTTY, and then programmatically connect to the database, usually using the MySqlConnection object, etc.

How can I programmatically create an SSH tunnel using C # /. NET? Are there any libraries for this and / or anything built into the .NET platform that would help me with this?

+3
source share
2 answers
  • , SSH.
  • SSH ( TCP) ( EXE, putty)
  • .
  • !
0

Source: https://habr.com/ru/post/1728473/


All Articles