Differences

This shows you the differences between two versions of the page.

inbox:replacingdropbearbyopensshserver [2012/09/06 09:55] (current)
Line 1: Line 1:
 +<html>
 +<table class="inline" style="width:70%; margin-left:15%">
 +  <tr>
 +    <td style="border-left:6px solid #b8b8b8; vertical-align:middle">
 +      <img src="/_media/meta/icons/tango/48px-emblem-progress.svg.png" alt="" style="float:left; margin-right:0.5em" />
 +      <strong>Work in Progress!</strong><br />
 +      This page is a continuous work in progress. You can <a href="?do=edit">edit</a> this page to contribute information.
 +    </td>
 +  </tr>
 +</table>
 +</html>
 +====== Replacing Dropbear by openssh-server ======
 +
 +  * Change the Dropbear port to an unused/free one on your box and restart Dropbear<code>uci set dropbear.@dropbear[0].Port=2222
 +uci commit dropbear
 +/etc/init.d/dropbear restart</code>
 +
 +  * Make sure you have set a root password before rebooting<code>passwd</code>
 +
 +  * Reconnect to your router via SSH on the configured port above
 +
 +  * Install the openssh-server<code>opkg update
 +opkg install openssh-server</code>
 +
 +  * Enable and start OpenSSH server. OpenSSH will listen now on port 22<code>/etc/init.d/sshd enable
 +/etc/init.d/sshd start</code>
 +
 +  * Reconnect to your router via SSH on port 22
 +
 +  * Now you can disable Dropbear<code>/etc/init.d/dropbear disable
 +/etc/init.d/dropbear stop</code>
 +
 +  * Install the ''openssh-sftp-server'' package to install support for the SFTP protocol which SSHFS uses<code>opkg update
 +opkg install openssh-sftp-server</code>
 +
 +  * Don't forget to configure the openssh server in /etc/ssh/sshd_config

Back to top

inbox/replacingdropbearbyopensshserver.txt · Last modified: 2012/09/06 09:55 (external edit)