-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when trying to connect via an SSH tunnel: "An error occured while calling connect()." #78
Comments
You have at least to provide the details of your connexion... (you can mask the ip) |
can you try from the computer where you run mongohub: does it work? and can you try from my_server: does it work? According to this setting, your mongo server is running on 10.x.x.x on port 27017. Is it correct? |
while doing the ssh command, it should not ask you for a password (since you didn't give any) |
Sure I can ping my_server from my local machine without problems. ssh -i ~/.ssh/id_rsa_another_key my_user@my_server and indeed I am not required to input a password. From my_server I can surely ping 10.x.x.x and I can also connect via mongo: my_user@my_server $ mongo 10.x.x.x:27017/my_db |
You pointed out one key path ( |
Yeah I'm sorry about that. The screenshot is of course not what I am really using, was just to show the fields that were filled. Then I realized that I should have changed the key to actually show that I am not using the typical default key "~/.ssh/id_rsa" but another key. |
Just to make sure, so MongoHub still doesn't work with ~/.ssh/id_rsa_another_key? |
the problem might be about the default mongo port. You didn't put any ports (27017). I think there is a bug about that. Try to put it, to see if it works better. Also the ssh command is logged into the console, try to see if you see any other problems that by running it. It seems to work for me. Let this bug opened until I fix it, so it works as it is expected to work |
It does work when I input the port, great, thanks! :) |
Great! The ssh tunneling is very slow to connect in Mongohub. I always forget how painful it is (I don't use this feature). I think I found a way to make it a lot faster. As soon as I have the time to implement my fix, I will do a build, and you will be able to check the fix of this issue and close it. |
Sure, I'll check it then, just let me know. |
For info, I've just discovered that this same bug occurs also with the SSH port, i.e. if we leave the default (22) MongoHub tries to connect using port 0 (I checked in the console). |
No that's ok. This related enough to this issue. Don't bother. I think I've tried yesterday with the ssh port also, I didn't have any problem. I will look again anyway (and even more if I solve the connexion delay, since I will redo a lot of the tunneling code). |
Fixed in 2.5.6(100). Please, verify and close this issue |
Works like a charm :) Closing the issue, thanks! |
I'm on OSX 10.8.3 and I'm trying to connect to a remove server via an SSH tunnel with MongoHub 2.5.5[99] but I get the following error: "An error occured while calling connect()."
The DB is not in the remote server but in another one in the same internal network (therefore I put its IP address in the "Address" field).
Let me know if there is any more information I can provide.
The text was updated successfully, but these errors were encountered: