[CSHARP-1613] connection to mongodb with ssh using c# driver Created: 27/Mar/16 Updated: 14/Jun/19 Resolved: 28/Mar/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Connectivity |
| Affects Version/s: | 2.2.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | avi inbar | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows application running in .net against mongodb env on aws hosted in linux |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
how can we connect with ssh to mongodb server which located in aws and hosted in Linux server. |
| Comments |
| Comment by Manikandan [ 11/Jun/19 ] |
|
Hi Craig, Can you share us a sample on how to inject SSHStreamFactory in ClusterConfigurator? https://stackoverflow.com/questions/56560795/how-to-connect-ssh-net-in-mongodb-c-sharp?noredirect=1#comment99705277_56560795
|
| Comment by Craig Wilson [ 28/Mar/16 ] |
|
Hi Avi, We currently don't have a way to connect to MongoDB over SSH. We do have a hook where we can add this capability. It is the ClusterConfigurator property of MongoClientSettings. You can create a custom SshStreamFactory and inject it in using ClusterConfigurator. Craig |