不知道大家有没有体验到那种痛苦,用vscode轻轻松松连上 但是cursor半天连不了 如果cursor连不了 那对经常要在服务器操作的同志来说就是极大痛苦。今天认真的看了一遍logs终于找到 原因了,解决方法很简单。
这里有一些帮助的论坛和文档 是cursor官方的 可能有些有用
Cursor 远程链接 踩的坑 一招搞定_网络_简单点、就这样-2048 AI社区
我折腾了好几天 尝试了换版本 改http 重装 等办法 都不行
我看了我的logs
[Trace - 13:54:30.212] (ssh_tunnel) stderr: debug1: pledge: network
[Trace - 13:54:30.331] (ssh_tunnel) stdout: Locking /run/user/1000/cursor-remote-lock.4c2692fde23a6e2da01fcea334270efe1ed4053af0508b35cae856525875ffe2
[Trace - 13:54:30.343] (ssh_tunnel) stdout: Downloading server via wget from https://cursor.blob.core.windows.net/remote-releases/53b99ce608cba35127ae3a050c1738a959750860/vscode-reh-linux-x64.tar.gz to cursor-server-63e35446-ee11-482d-b234-7ae3a13d92d0.tar.gz
[Error - 13:57:23.823] Error installing server:
Error: Failed to install server within the timeout
at Timeout._onTimeout (c:\Users\Administrator.cursor\extensions\anysphere.remote-ssh-0.0.34\dist\main.js:1:218438)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7)
[Error - 13:57:23.824] Error resolving SSH authority
Error: Failed to install server within the timeout
at Timeout._onTimeout (c:\Users\Administrator.cursor\extensions\anysphere.remote-ssh-0.0.34\dist\main.js:1:218438)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7)
说是需要在目标服务器下一个 cursor-server.tar.gz 文件 ,cursor自己下载半天下超时了
那就我来手动下给他吧
检查网络连接:
# 在远程服务器上测试是否能访问下载URL
curl -I https://cursor.blob.core.windows.net/remote-releases/53b99ce608cba35127ae3a050c1738a959750860/vscode-reh-linux-x64.tar.gz
尝试手动下载并安装:
# 在远程服务器上或者本地手动下载
wget https://cursor.blob.core.windows.net/remote-releases/53b99ce608cba35127ae3a050c1738a959750860/vscode-reh-linux-x64.tar.gz -O cursor-server.tar.gz
#如果是在本地下载的可以用scp复制过去
scp /本地/文件.txt username@remote_host:/远程/目录/
# 解压到正确位置
tar -xzf cursor-server.tar.gz -C ~/.cursor-server
因为cursor是外国的服务器 下载很慢 推荐本地下载 然后再 scp 过去
这里 cursor-server.tar.gz 我上传到了git ,不方便下载的可以git自取。
https://gitee.com/wushangling/cursor
cursor直接下最新版本的remote ssh (我是1.0.11),搜不出来的小伙伴想想自己是不是有网络问题,这里不多说,自己想办法谷歌
设置好ssh的config 就可以愉快的连接 非常的快 很舒畅 很舒服 !!!
希望大家也能轻轻松松连上
【觉得有用的小伙伴麻烦点个赞,感谢啦!!! 】