VsCode 使用 Remote SSH 连接 Alpine Linux

VsCode Remote SSH 默认是不支持 Alpine Linux 的,不过,对 Alpine Linux 进行一些改动,就可以实现,比较方便。

步骤如下:

  1. 安装 Bash
  2. 安装需要的包
1$ apk del dropbear
2$ apk add gcompat libstdc++6 openssh wget git
bash
1$ nano /etc/ssh/sshd-config
bash
1AllowTcpForwarding yes
2PermitTunnel       yes
  1. VsCode 连接 Alpine Linux
  2. F1 > "Preferences: Open Remote Settings (JSON) (SSH: )"
  3. 添加下面的内容:
1{
2	"git.path": "/usr/bin/git",
3}
json

相关专栏文章