[CSHARP-768] Support SSH Tunnels for Connections to MongoDB Created: 28/Jun/13  Updated: 28/Mar/16  Resolved: 30/Dec/14

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: 1.8.1
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Craig Wilson Assignee: Unassigned
Resolution: Done Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CSHARP-1142 Expose Stream Factory configuration i... Closed
Duplicate
is duplicated by CSHARP-1613 connection to mongodb with ssh using ... Closed
Epic Link: Adopt Core Library

 Description   

It would be nice to support connections to mongodb over SSH.



 Comments   
Comment by Craig Wilson [ 30/Dec/14 ]

We will not be providing an SshStreamFactory implementation. However, CSHARP-1142 provides the ability to inject a custom IStreamFactory, of which an SshStreamFactory would be an implementation.

Comment by Ahmed [ 04/Dec/14 ]

Makes sense Craig. Thanks for your suggestions. I'll be looking forward to the next release

Comment by Craig Wilson [ 04/Dec/14 ]

Hi Ahmed,

We currently have a solution for this in our next major version. It will require you to provide your own implemention of an SSH stream factory. This is because there isn't an SSH client built-in to the .NET framework and we would like to keep our runtime dependencies down, especially when so few people actually need this behavior. Many users have a VPN setup, so this functionality has been categorized by us as "nice-to-have" since you are the first one to indicate this need (and I actually opened the ticket).

As we get nearer our 2.0 release, I'll spike out an implementation of utilizing SSH.NET to create an IStreamFactory and plug it in.

Craig

Comment by Ahmed [ 03/Dec/14 ]

This issue is more than just a "nice-have". SSH is needed in order for us to communicate with instances where MongoDB is stored on AWS EC2. Without this feature, the process of uploading documents generated on CSharp applications into EC2 MongoDBs is pretty non-obvious. I still haven't figured out a clean way to do this.

IMO priority should be lifted to bridge C# applications with their Mongo web applications.

Generated at Wed Feb 07 21:37:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.