如何在C#代码中使用SSH隧道连接到远程Mysql数据库 [英] How to connect to remote Mysql database using SSH tunnel in C# code

查看:409
本文介绍了如何在C#代码中使用SSH隧道连接到远程Mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我正在尝试从远程服务器上的MySql数据库获取数据.我想使用SSH隧道来做到这一点,以便所有通信都被加密和安全.我确实在尝试连接的远程服务器上安装了SSH服务器.我一直在寻找.net库,这些库可以帮助我从C#代码连接到SSH服务器并执行Mysql查询,但是我发现的都是从商业供应商那里获得的.是否有任何开放源代码库可用于执行此操作或以其他方式完成此操作?
请帮助

Hi All
I am trying to get data from a MySql database which is on a remote server. I want to do this using SSH tunnelling so that all the communications are encrypted and secure. I do have SSH server installed on the remote server that I am trying to connect to. I have been looking for .net libraries that could help me connect to the SSH server from C# code and execute Mysql queries, but whatever I found was from commercial vendors. Is there any open-source libraries for doing this or any other way to accomplish this?
Please help

推荐答案

Microsoft不提供收件箱.您需要搜索第三方 http: //www.eldos.com/sbb/net-ssh.php?referer1=google&referer2=adwords_ssh_csharp&gclid=CP-Zt_ruy6wCFdQOfAodN1hfqA [
Microsoft does not provide in-box. You need to search for third-party one like http://www.eldos.com/sbb/net-ssh.php?referer1=google&referer2=adwords_ssh_csharp&gclid=CP-Zt_ruy6wCFdQOfAodN1hfqA[^]


这篇关于如何在C#代码中使用SSH隧道连接到远程Mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆