<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40:09 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-1613] connection to mongodb with ssh using c# driver</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1613</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;how can we connect with ssh to mongodb server which located in aws and hosted in Linux server.&lt;br/&gt;
we are getting a timeout when trying to connect to the mongo client.&lt;br/&gt;
we are working in .net application using c# driver and trying to connect via ssh client.&lt;br/&gt;
the following is snippet from our code: &lt;br/&gt;
using (var client = new SshClient(&quot;&amp;lt;ip of aws machine&amp;gt;&quot;, 22, &quot;mongodb user&quot;, &quot;password&quot;))&lt;/p&gt;
                    {
                        client.Connect();
                        var connectionString = &quot;mongodb://root:passwordOfMongoDB@localhost:27017&quot;;
                        MongoClient MongoClient = new MongoClient(connectionString);
                        IAsyncCursor&amp;lt;BsonDocument&amp;gt; lst11 = MongoClient.ListDatabases();
                        client.Disconnect();
                    }</description>
                <environment>Windows application running in .net against mongodb env on aws hosted in linux</environment>
        <key id="275318">CSHARP-1613</key>
            <summary>connection to mongodb with ssh using c# driver</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="avi74">avi inbar</reporter>
                        <labels>
                    </labels>
                <created>Sun, 27 Mar 2016 17:21:36 +0000</created>
                <updated>Fri, 14 Jun 2019 13:08:51 +0000</updated>
                            <resolved>Mon, 28 Mar 2016 13:41:35 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2279309" author="manikandan43353" created="Tue, 11 Jun 2019 13:05:33 +0000"  >&lt;p&gt;Hi Craig,&lt;/p&gt;

&lt;p&gt;&#160; Can you share us a sample on how to inject SSHStreamFactory in ClusterConfigurator?&#160;&lt;a href=&quot;https://stackoverflow.com/questions/56560795/how-to-connect-ssh-net-in-mongodb-c-sharp?noredirect=1#comment99705277_56560795&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/questions/56560795/how-to-connect-ssh-net-in-mongodb-c-sharp?noredirect=1#comment99705277_56560795&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="1216628" author="craiggwilson" created="Mon, 28 Mar 2016 13:41:14 +0000"  >&lt;p&gt;Hi Avi,&lt;/p&gt;

&lt;p&gt;We currently don&apos;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.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="80738">CSHARP-768</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="172682">CSHARP-1142</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsjt6v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>