Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuxuanlin committed May 6, 2023
1 parent 112eee4 commit 8e5784b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/使用VSCode进行远程开发.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ sudo sysctl -p

在 VS Code 的设置中找到 `Remote.SSH: Config File`,填写覆盖值为 `C:\Users\你需要的用户名\.ssh\config`,并在本地创建相应的配置文件即可。

### 连接失败,但使用其他 SSH 客户端可以连上

有可能是远程服务器上的 sshd 的版本低于 7.6.0,缺失了显示远程端口的特性所导致的。解决这个问题需要升级 sshd 的版本:

- 对于 Debian 或 Ubuntu:`sudo apt-get update && sudo apt-get install openssh-server`
- 对于 Red Hat 或 CentOS:`sudo yum update openssh-server`

## 参考与致谢

- [VSCode Remote 体验 | 远程 Linux 环境开发真香](https://zhuanlan.zhihu.com/p/64849549)
Expand Down

1 comment on commit 8e5784b

@vercel
Copy link

@vercel vercel bot commented on 8e5784b May 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.