![entware replace dropbear ssh entware replace dropbear ssh](https://ivrodriguez.com/content/images/size/w2000/2018/02/fabian-grohs-423591.jpg)
![entware replace dropbear ssh entware replace dropbear ssh](https://keestalkstech.com/wp-content/uploads/2018/11/2018-11-09_0857.jpg)
IMHO the solution is to retain the original SSHd daemon, but move it to an non-standard port, (just as QNAP does with it's " Telnet Daemon", putting Telnet on port 13131/TCP, rather the standard Telnet port 23/TCP). If Optware doesn't startup correctly, (for example after a Firmware upgrade), the QNAP owner can find themselves locked-out of their own system.
ENTWARE REPLACE DROPBEAR SSH HOW TO
This is a very annoying BUG! QNAPedia article: How To Replace SSH Daemon With OpenSSH is DANGEROUS, because it is attempting to replace the built-in one, rather than supplementing it. Consider the following: Excerpt from /etc/passwd: admin:x:0:0:administrator,: /share/homes/admin :/bin/sh QNAP's SSHd daemon incorrectly sets the $HOME directory, and the $HOME environment variable to: /root as well, completely ignoring the $HOME environment variable (in the SSHd provided in Firmware v3.8.0 & v3.8.1). Abstract: QNAP's provided SSHd Server restricts access to Admin-only (by design), and in the v3.8.0/v3.8.1 Firmware does not respect the $HOME Field in the /etc/passwd (which is a symlink to /etc/config/passwd). I will refer to QNAPedia article: Running Your Own Application at Startup later in this article, so I recommend at least glancing at both of these Wikipedia articles, to ensure you have enough Linux skills to follow both of these documents.
ENTWARE REPLACE DROPBEAR SSH INSTALL
Please following the instructions in QNAPedia article: Install Optware IPKG, preferably using the QPKG method.
![entware replace dropbear ssh entware replace dropbear ssh](https://ixbt.online/live/images/original/00/05/45/2018/08/21/fc4e03dde2.png)
If you don't have Optware IPKG installed, stop here, and go install Optware IPKG first. Prerequisites: Installing OpenSSH requires that Optware is already installed. Both of these tasks should be considered MEDIUM to EXPERT Linux Skills required. Installing OpenSSH as default SSHd Server (but keeping QNAP's SSHD version active as well) Audience: This post requires some Linux skills, as it requires pre-installation of Optware IPKG, and requires modifying the "autorun.sh".