Setting Up VS Code SSH Remote Development on OpenWrt

VS Code’s Remote SSH extension requires SFTP (SSH File Transfer Protocol) support, which isn’t available in Dropbear, OpenWrt’s default SSH server. You’ll need to switch to OpenSSH for full compatibility.

Installing OpenSSH

Follow the offic…


This content originally appeared on DEV Community and was authored by 阿豪

VS Code's Remote SSH extension requires SFTP (SSH File Transfer Protocol) support, which isn't available in Dropbear, OpenWrt's default SSH server. You'll need to switch to OpenSSH for full compatibility.

Installing OpenSSH

Follow the official OpenWrt guide to replace Dropbear with OpenSSH

Installing Modern tar

VS Code Remote requires a recent version of tar with specific features. OpenWrt's BusyBox tar is too limited:

opkg install tar
tar --version

Configuring SSH on Your Host

Create or edit your SSH config file to simplify connections.

Windows: C:\Users\YourUsername\.ssh\config
Linux/Mac: ~/.ssh/config

Add this configuration:

Host openwrt
  HostName 192.168.56.66
  User root
  IdentityFile ~/.ssh/openwrt

This allows you to connect with just ssh openwrt instead of typing the full command each time.

Connecting with VS Code

  1. Install the Remote - SSH extension in VS Code
  2. Press F1 or Ctrl+Shift+P to open the command palette
  3. Type "Remote-SSH: Connect to Host"
  4. Select openwrt from the list
  5. VS Code will connect and install the VS Code Server on OpenWrt

The first connection takes a few minutes as VS Code downloads and installs its server components (~50-100MB).

vscode ssh remote


This content originally appeared on DEV Community and was authored by 阿豪


Print Share Comment Cite Upload Translate Updates
APA

阿豪 | Sciencx (2025-11-29T14:45:21+00:00) Setting Up VS Code SSH Remote Development on OpenWrt. Retrieved from https://www.scien.cx/2025/11/29/setting-up-vs-code-ssh-remote-development-on-openwrt/

MLA
" » Setting Up VS Code SSH Remote Development on OpenWrt." 阿豪 | Sciencx - Saturday November 29, 2025, https://www.scien.cx/2025/11/29/setting-up-vs-code-ssh-remote-development-on-openwrt/
HARVARD
阿豪 | Sciencx Saturday November 29, 2025 » Setting Up VS Code SSH Remote Development on OpenWrt., viewed ,<https://www.scien.cx/2025/11/29/setting-up-vs-code-ssh-remote-development-on-openwrt/>
VANCOUVER
阿豪 | Sciencx - » Setting Up VS Code SSH Remote Development on OpenWrt. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/11/29/setting-up-vs-code-ssh-remote-development-on-openwrt/
CHICAGO
" » Setting Up VS Code SSH Remote Development on OpenWrt." 阿豪 | Sciencx - Accessed . https://www.scien.cx/2025/11/29/setting-up-vs-code-ssh-remote-development-on-openwrt/
IEEE
" » Setting Up VS Code SSH Remote Development on OpenWrt." 阿豪 | Sciencx [Online]. Available: https://www.scien.cx/2025/11/29/setting-up-vs-code-ssh-remote-development-on-openwrt/. [Accessed: ]
rf:citation
» Setting Up VS Code SSH Remote Development on OpenWrt | 阿豪 | Sciencx | https://www.scien.cx/2025/11/29/setting-up-vs-code-ssh-remote-development-on-openwrt/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.