2. Once the SSH Shell opens you can use the below parameters to work within the db.
Username: devUser
Password: test
Db: testDb
Collection: testCollection
From here create a record of any sort inside the given Db and Collection. Your SSH shell should look something like this.
Hey guys,
I know I've been posting a lot about this issue, but here is one more thread I'd like to put out there.As of now, I don't there isn't a clean way to have a local .Net application communicate to a MongoDB instance in an EC2 server -- because there is no way to relay SSH Authentication keys in the current c# driver.This is a non-insignificant issue, because I am sure that many up and coming users of MongoDB will naturally think to deploy their Mongo Databases in the cloud using EC2. Being able to insert and obtain documents in local C# applications will be an apparent need then....If anyone has any ideas on how to work around this, I'd love to hear it.What I've done is created a dummy instance of MongoDB in an EC2 cloud for which I'm attaching the username / password / hostname / port -- so if anyone else wants to help create a solution they can.Test Case:1. Connect to the EC2 instance MongoDB using PuTTy to insert a record through the resulting SSH shell.
Port:22SSH Authentication Private Key File: Use Attached "AhmedsSensoKey.ppk"Your PuTTY screens should look something like this:
2. Once the SSH Shell opens you can use the below parameters to work within the db.
Username: devUser
Password: test
Db: testDb
Collection: testCollection
From here create a record of any sort inside the given Db and Collection. Your SSH shell should look something like this.
Our/Your Challenge:Perform the same process in .Net / C# using the C# Driver (or any process you'd recommend)....My attempt at the code looked like the below. The issue I ran into, however, was the error:
"Additional information: Unable to connect to server bitnami@ec2-54-85-204-7.compute-1.amazonaws.com:22: A non-recoverable error occurred during a database lookup."
I should have said:As of now, I don't there is a clean way to have a local .Net application communicate to a MongoDB instance in an EC2 server -- because there is no way to relay SSH Authentication keys in the current c# driver.As in, right now I don't think there's a way to handle this issue.
On Wednesday, December 3, 2014 11:46:53 PM UTC-6, Ahmed Haque wrote:
Hey guys,
I know I've been posting a lot about this issue, but here is one more thread I'd like to put out there.As of now, I don't there isn't a clean way to have a local .Net application communicate to a MongoDB instance in an EC2 server -- because there is no way to relay SSH Authentication keys in the current c# driver.This is a non-insignificant issue, because I am sure that many up and coming users of MongoDB will naturally think to deploy their Mongo Databases in the cloud using EC2. Being able to insert and obtain documents in local C# applications will be an apparent need then....If anyone has any ideas on how to work around this, I'd love to hear it.What I've done is created a dummy instance of MongoDB in an EC2 cloud for which I'm attaching the username / password / hostname / port -- so if anyone else wants to help create a solution they can.Test Case:1. Connect to the EC2 instance MongoDB using PuTTy to insert a record through the resulting SSH shell.