visual-studio-code - 在远程 ssh 连接时,文件不会从 vscode 集成终端打开
问题描述
在远程 ssh 连接上,我无法从 vscode 集成终端打开文件本地机器:Windows 10 远程机器:Ubuntu 20.04
这是尝试启动 abc.txt 的代码的日志
$ code abc.txt --verbose
No protocol specified
[9045:1002/183652.672418:ERROR:browser_main_loop.cc(1402)] Unable to open X display.
The futex facility returned an unexpected error code.
/dev/fd/3: No such file or directory
Server response:
这很令人沮丧,请帮助注意:我已经尝试过export DISPLAY=:0
解决方案
推荐阅读
- apache - 为什么 apache 服务器不能与 bettercap 一起使用?
- html - 在 CSS 中获取 div、按钮等的宽度
- java - 通过流式传输将多部分文件上传到 Amazon S3 时内存使用率高?
- sql - 作业调度程序不在 oracle 中执行
- php - 如何将我的日期和时间字符串连接在一起?
- python - 运行 collectstatic 命令时出现权限被拒绝错误
- c++ - C++ 不能链接到前缀为 __imp_ 的符号
- gnuplot - 如何使用gnuplot导入具有固定列宽的数据?
- point-cloud-library - 如何使用 pcl 的聚类方法来聚类 6d 数据,例如 Eigen::Matrix
- java - 可展开的 listView 行项目不连续显示