User Tools

Site Tools


inbox:replacingdropbearbyopensshserver

Differences

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

Link to this comparison view

inbox:replacingdropbearbyopensshserver [2012/09/06 09:55]
inbox:replacingdropbearbyopensshserver [2015/12/14 21:09] (current)
tmomas de-html-ified
Line 1: Line 1:
 +====== Replacing Dropbear by openssh-server ======
  
 +{{page>​meta:​infobox:​wip&​noheader&​nofooter&​noeditbtn}}
 +
 +  * 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