简体   繁体   English

如何从Windows Azure进行SSH隧道?

[英]How to do SSH tunnelling from Windows Azure?

For a C#/.NET 4.0 worker app running on Windows Azure, I would like to setup on demand SSH tunnels to 3rd party servers (mostly to access secure MySQL databases). 对于在Windows Azure上运行的C#/。NET 4.0辅助应用程序,我想按需设置到第三方服务器的SSH隧道(主要用于访问安全的MySQL数据库)。 SSH.NET is an open-source project precisely designed to open SSH tunnels from .NET. SSH.NET是一个开放源代码项目,专门用于从.NET打开SSH隧道。 However, I am concerned about the local port allocation. 但是,我担心本地端口分配。

Has anyone ever succeeded in establishing a SSH Tunnel from Windows Azure? 有没有人成功地从Windows Azure建立SSH隧道?

Establishing SSH Tunnel is simple - just set up port 22 SSH endpoint on your Azure VM. 建立SSH隧道很简单-只需在Azure VM上设置端口22 SSH终结点即可。 Your public port doesnt have to be 22, but the private port has to be. 您的公共端口不必为22,但私有端口必须为。

From your Azure dashboard of your VM, click on 'Endpoints' and 'Add' - Choose SSH and port 22. 在VM的Azure仪表板中,单击“端点”和“添加”-选择SSH和端口22。

If your VM is non linux, say you're using Windows, then you might need to install a SSH server . 如果您的VM不是Linux,则表示您正在使用Windows,则可能需要安装SSH服务器

using a putty client install, yes. 使用腻子客户端安装,是的。 windows firewall is under your control. Windows防火墙由您控制。 what else would stand in your way? 还有什么会阻碍您的前进?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM