Run remote cursor server with proxy

I use Cursor with project on a remote instance. Cursor can ssh and copy server there, but the server can’t index project, because access to https://repo42.cursor.sh available only via Proxy.
Is there a way to configure only server to use Proxy?

Edit: I did try to set http.proxy in remote settings.json - didn’t help
Edit 2: setting proxy vars in /etc/environment didn’t help as well
Edit 3: I was able to index the project, editing ~/.cursor-server/bin/9f33c2e793460d00cf95c06d957e1d1b8135fad0/bin/cursor-server

HTTPS_PROXY=http://myproxy HTTP_PROXY=http://myproxy https_proxy=http://myproxy http_proxy=http://myproxy "$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" "$@"

But now I’m looking for a proper way to do it

Hi @Gennadiy_Kartashevsk, apologies for the delay here. When using a remote SSH server, we support configuring a proxy via the remote.SSH.httpProxy and remote.SSH.httpsProxy settings.

Hey! Thanks, but see my original message, you’re referring to I did try to set http.proxy in remote settings.json - didn’t help If I set remote.SSH.http(s)Proxy in local settings - I can’t even ssh, because proxy is not available from local machine

Hi @Gennadiy_Kartashevsk,

You can set these settings from a local cursor window. They are stored client side, not on the remote machine.

Thanks, but with these settings in local I can’t even ssh

Could you share the full logs from the “Remote - SSH” output console? These proxy settings (remote.SSH.*) would be applied after the SSH connection itself is established (but before the remtoe server is downloaded). They wouldn’t affect establishing the remote connection.

Logs:

2025-09-12 08:17:34.632 [info] Resolving ssh remote authority '[email protected]' (Unparsed '[email protected]') (attempt #1)
2025-09-12 08:17:34.640 [info] SSH askpass server listening on /var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor-ssh-ni3kAX/socket.sock
2025-09-12 08:17:34.642 [info] Using askpass script: /Users/gennadiy.kartashevskyy/.cursor/extensions/anysphere.remote-ssh-1.0.28/dist/scripts/launchSSHAskpass.sh with javascript file /Users/gennadiy.kartashevskyy/.cursor/extensions/anysphere.remote-ssh-1.0.28/dist/scripts/sshAskClient.js. Askpass handle: /var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor-ssh-ni3kAX/socket.sock
2025-09-12 08:17:34.645 [info] Launching SSH server via shell with command: cat "/var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor_remote_install_143a65f4-47aa-45e0-a801-35fa33f42815.sh" | ssh -T -D 49493 [email protected] bash --login -c bash
2025-09-12 08:17:34.645 [info] Establishing SSH connection: cat "/var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor_remote_install_143a65f4-47aa-45e0-a801-35fa33f42815.sh" | ssh -T -D 49493 [email protected] bash --login -c bash
2025-09-12 08:17:34.645 [info] Started installation script. Waiting for it to finish...
2025-09-12 08:17:34.645 [info] Waiting for server to install...
2025-09-12 08:17:37.172 [info] (ssh_tunnel) stderr: 
Failed to connect to proxy URL: "http://myproxy"

2025-09-12 08:17:39.269 [info] (ssh_tunnel) stderr: 
Failed to connect to proxy URL: "http://myproxy"

2025-09-12 08:17:39.399 [info] (ssh_tunnel) stderr: Failed to get instance ID for ip 10.40.242.37

2025-09-12 08:17:39.399 [info] (ssh_tunnel) stderr: Connection closed by UNKNOWN port 65535

2025-09-12 08:17:39.402 [error] Error installing server: Failed to connect to the remote SSH host. Please check the logs for more details.
2025-09-12 08:17:42.232 [info] Selected platform linux for remote host 10.40.242.37
2025-09-12 08:17:42.232 [info] Deleting local script /var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor_remote_install_143a65f4-47aa-45e0-a801-35fa33f42815.sh
2025-09-12 08:17:42.234 [info] Using askpass script: /Users/gennadiy.kartashevskyy/.cursor/extensions/anysphere.remote-ssh-1.0.28/dist/scripts/launchSSHAskpass.sh with javascript file /Users/gennadiy.kartashevskyy/.cursor/extensions/anysphere.remote-ssh-1.0.28/dist/scripts/sshAskClient.js. Askpass handle: /var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor-ssh-ni3kAX/socket.sock
2025-09-12 08:17:42.238 [info] Launching SSH server via shell with command: cat "/var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor_remote_install_dffc3410-c664-4212-967a-7c7699acb384.sh" | ssh -T -D 49510 [email protected] bash --login -c bash
2025-09-12 08:17:42.238 [info] Establishing SSH connection: cat "/var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor_remote_install_dffc3410-c664-4212-967a-7c7699acb384.sh" | ssh -T -D 49510 [email protected] bash --login -c bash
2025-09-12 08:17:42.238 [info] Started installation script. Waiting for it to finish...
2025-09-12 08:17:42.238 [info] Waiting for server to install...
2025-09-12 08:17:44.176 [info] (ssh_tunnel) stderr: 
Failed to connect to proxy URL: "http://myproxy"

2025-09-12 08:17:45.249 [info] (ssh_tunnel) stderr: 
Failed to connect to proxy URL: "http://myproxy"

2025-09-12 08:17:45.351 [info] (ssh_tunnel) stderr: Failed to get instance ID for ip 10.40.242.37

2025-09-12 08:17:45.351 [info] (ssh_tunnel) stderr: Connection closed by UNKNOWN port 65535

2025-09-12 08:17:45.352 [error] Error installing server: Failed to connect to the remote SSH host. Please check the logs for more details.
2025-09-12 08:17:45.352 [info] Deleting local script /var/folders/dw/0c6t_lg51pz8wqmsmnw47m440000gn/T/cursor_remote_install_dffc3410-c664-4212-967a-7c7699acb384.sh
2025-09-12 08:17:45.353 [error] Error resolving SSH authority Failed to connect to the remote SSH host. Please check the logs for more details.
2025-09-12 08:19:11.775 [info] Saved platform linux for remote host 10.40.242.37

@ravirahman any updates? It’s very frustrating to setup cursor server when you need to manually edit remote files

These error indicate that the proxy was not reachable from the remote machine. Could you double check that the proxy url is correct?

Yes, proxy is correct. Also, without proxy setting it at least fallbacks to scp, but not with proxy settings