User Tools

Site Tools

This wiki is read only and for archival purposes only. >>>>>>>>>> Please use the new OpenWrt wiki at <<<<<<<<<<

Replacing Dropbear by openssh-server

Work in Progress!
This page is a continuous work in progress. You can edit this page to contribute information.

  • Make sure you have set a root password:
  • Change the Dropbear port to an unused/free one on your box and restart Dropbear:
    uci set dropbear.@dropbear[0].Port=2222
    uci commit dropbear
    /etc/init.d/dropbear restart
  • Reconnect to your router via SSH on the configured port above:
    ssh -p 2222 root@
  • Install the openssh-server
    opkg update
    opkg install openssh-server
  • On CC 15.05+, if you want to be able to use a password for root login, edit /etc/ssh/sshd_config and change
    #PermitRootLogin without-password
    PermitRootLogin yes
  • Enable and start OpenSSH server. OpenSSH will listen now on port 22.
  • /etc/init.d/sshd enable
    /etc/init.d/sshd start
  • Reconnect to your router via SSH on port 22. If this fails to authenticate with the root password on port 22, you should still be able to connect with Dropbear on port 2222. Test this first and then reboot OpenWRT. After that you should be able to connect with OpenSSH on port 22.
  • Now you can disable Dropbear
    /etc/init.d/dropbear disable
    /etc/init.d/dropbear stop
  • Install the openssh-sftp-server package to install support for the SFTP protocol which SSHFS uses
    opkg update
    opkg install openssh-sftp-server
  • Don't forget to configure the openssh server in /etc/ssh/sshd_config
inbox/replacingdropbearbyopensshserver.txt · Last modified: 2016/04/06 20:36 by highpost