[COMPASS-4268] Not able to connect over SSH Tunnel any more Created: 04/May/20  Updated: 29/Oct/23  Resolved: 12/May/20

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.21.0
Fix Version/s: 1.21.2

Type: Bug Priority: Critical - P2
Reporter: Peter Hevesi Assignee: Alena Khineika
Resolution: Fixed Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

macOS Catalina 10.15.4


Issue Links:
Duplicate
is duplicated by COMPASS-4282 Cannot connect via SSH Closed
is duplicated by COMPASS-4277 Cannot connect via ssh Closed
Related
related to COMPASS-4290 Release 1.21.2 Closed
Sprint: Iteration Cantaloupe, Iteration Dragon Fruit

 Description   

Since the recent update, Compass is not able to connect to the remote server via SSH tunnel. I use the same connection settings as in previous version (still works with the older Compass version and also using pymongo with SSH Tunnel Forwarder).

A simple username/password authentication is used for both SSH and mongoDB. 

After waiting a minute, the error message appears:

connect ECONNREFUSED 127.0.0.1:27017



 Comments   
Comment by Githook User [ 12/May/20 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-4268: Fix SSH Tunnel on Connect
Branch: COMPASS-4268
https://github.com/mongodb-js/compass/commit/f5a5d90851cb7698b70c7d7db21a7333ee54d9fc

Comment by Githook User [ 11/May/20 ]

Author:

{'name': 'Alena Khineika', 'email': 'alenakhineika@users.noreply.github.com', 'username': 'alenakhineika'}

Message: COMPASS-4268: Use proper password for ssh (#277)

  • fix: use proper password for ssh
  • test: remove slow and timeout
  • Use clone deep to ensure driver options remain unchanged after ssh tunnel injection

Co-authored-by: Rhys Howell <rhys@rhysh@live.com>
Branch: master
https://github.com/mongodb-js/connection-model/commit/6bd0ec2ef55022fbcd199a5dc56bc23ba5ff475d

Comment by Cesar Mascarenhas [ 07/May/20 ]

Both of my working systems ( macOS catalina and windows 10 ) behaves the same way as reported.
connect ECONNREFUSED 127.0.0.1:27017 with SSH Tunnel

Comment by William Rufino [ 04/May/20 ]

I'm on Windows 10 and have the same issure.

Cannot connect anymore after update.

Comment by Hugo Maestá [ 04/May/20 ]

I am facing this issue too.

Both with a connection with user/pass SSH Tunnel and other with SSH Identity File.

Same macOS (10.15.4) and same Compass version (1.21.0).

Generated at Wed Feb 07 22:35:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.