getcursor / cursor

The AI Code Editor
https://cursor.com
20.7k stars 1.38k forks source link

Remote-SSH with ProxyJump not working #788

Open hojaeklee opened 11 months ago

hojaeklee commented 11 months ago

Hello to the wonderful developers!

I am a student who primarily uses my school's HPC, which often involves remote ssh-ing to a compute node (e.g. node with GPU). I achieve this by adding a ProxyCommand to my ssh configuration file, as shown below:

Host compute-node.school.edu
    User my_username
    ProxyCommand ssh -t -W %h:%p -q my_username@login-node.school.edu

I noticed I can remote-ssh to my login-node, but cannot do so to the compute-node (error screenshot below). I have updated Cursor to 0.8.2 but the issue seems to persist.

image

Any ideas on how to fix this would be amazing (and allow me to switch from VSCode to Cursor full time!)

CedricYauLBD commented 11 months ago

Experiencing similar issues here regarding inability to connect to host that requires a ProxyJump

rtaori commented 11 months ago

Yes I have the same issue

teticio commented 9 months ago

Me too... Any reason why Cursor has moved away from using native SSH extension in VSCode? It was working nicely before... Otherwise thanks for a great product

teticio commented 9 months ago

I can give some more detailed info. Suppose we have an entry in the ssh config file

Host test
  HostName example.com
  ProxyCommand ssh -W %h:%p example.com
  User me

(It is a bit of a convoluted example as it is using the host example.com as a jump server to itself). I can connect to this fine in VS Code and Cursor.

My problem is that I need to spawn a shell so that I can ensure the PATH is set correctly. It is a little technical and boring why I need to do this, but please accept that this is critical to me and my team being able to use Cursor. So I have a config like

Host test
  HostName example.com
  ProxyCommand bash -c 'export PATH=$PATH:/usr/local/bin; ssh -W %h:%p example.com'
  User me

This works on VS Code but not on Cursor. It may seem like an edge case, but I would say that whatever works in a shell or VS Code should ideally also work in Cursor, as there may be other cases that break.

goniz commented 3 months ago

Any update on this issue? I'm hitting this now trying to connect through Google Cloud IAP (using gcloud). Thanks

adamlin120 commented 3 months ago

have the same issue

kishan-character commented 1 month ago

I'm having the same issue