Skip to content

Instantly share code, notes, and snippets.

@NevadaCities
Last active November 13, 2025 13:57
Show Gist options
  • Select an option

  • Save NevadaCities/d8d04626132c64bc14080faebac966b7 to your computer and use it in GitHub Desktop.

Select an option

Save NevadaCities/d8d04626132c64bc14080faebac966b7 to your computer and use it in GitHub Desktop.
OpenWRT enables SFTP without replacing Dropbear

OpenWRT 不替换 Dropbear 启用 SFTP

注:Dropbear 如果不装 SFTP Server,可以使用 scp -O 启用 Legacy SCP Protocol 传输文件,但是会有安全性问题

  1. 安装 openssh-sftp-server

    opkg install openssh-sftp-server
  2. 编辑 /etc/dropbear/config

    option Subsystem sftp /usr/libexec/sftp-server
    
  3. 重启 Dropbear

    /etc/init.d/dropbear restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment