vscode Could not fetch remote environment in openmediavault


vscode的Remote-SSH可連接遠端主機進行操作
但server端是openmediavault就無法
原因是因爲Remote-SSH需要server端允許tcp forwarding
一般Linux中/etc/ssh/sshd_config是預設AllowTCPForwarding yes

[Debug] SSH Tunnel 無法正常使用

OMV的設定方式不在/etc/ssh/sshd_config這位置設定
解決方式:

  1. Login OMV web gui
  2. Services > SSH > TCP forwarding
  3. Enable: permit to do SSH tunneling

Remote SSH via Visual Studio Code


Author: Hung-Lin, Chen
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source Hung-Lin, Chen !
  TOC